eet - fix bug I added in optimization patch in unusual code path

fixes bug in d08bb74255 in fallback code
path.
This commit is contained in:
Carsten Haitzler 2021-10-25 09:34:14 +01:00
parent f3ecb37dd3
commit fdd4f923be
1 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,8 @@ eet_dictionary_write_prepare(Eet_Dictionary *ed)
return;
}
ed->total = ed->count;
ed->all = malloc(ed->count * sizeof(Eet_String));
ed->all_hash = malloc(ed->count);
ed->all_allocated = malloc(((ed->count >> 3) + 1));