summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-10-25 09:34:14 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-10-25 09:34:14 +0100
commitfdd4f923bef976f6f34a2df8e73c3c0098a8bb54 (patch)
tree09b83e052afabbd1443121388e9789cebf482203
parentf3ecb37dd32bf4f57bbc3a4230f0584207449b01 (diff)
eet - fix bug I added in optimization patch in unusual code path
fixes bug in d08bb7425552853eba6e1c27a33021741b7cb9b1 in fallback code path.
-rw-r--r--src/lib/eet/eet_dictionary.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eet/eet_dictionary.c b/src/lib/eet/eet_dictionary.c
index a334167075..ea54b118ad 100644
--- a/src/lib/eet/eet_dictionary.c
+++ b/src/lib/eet/eet_dictionary.c
@@ -104,6 +104,8 @@ eet_dictionary_write_prepare(Eet_Dictionary *ed)
104 return; 104 return;
105 } 105 }
106 106
107 ed->total = ed->count;
108
107 ed->all = malloc(ed->count * sizeof(Eet_String)); 109 ed->all = malloc(ed->count * sizeof(Eet_String));
108 ed->all_hash = malloc(ed->count); 110 ed->all_hash = malloc(ed->count);
109 ed->all_allocated = malloc(((ed->count >> 3) + 1)); 111 ed->all_allocated = malloc(((ed->count >> 3) + 1));