diff options
author | Cedric BAIL <cedric.bail@free.fr> | 2012-08-26 02:00:48 +0000 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2012-08-26 02:00:48 +0000 |
commit | 8fd67313b8a6025b1dc57c7582c4c1f1d54466f5 (patch) | |
tree | 141660797376bb3d906ef9bf8775564719eb873b | |
parent | ca8dc00af10afa50dd541d3ed68c0290b81a693f (diff) | |
download | eet-8fd67313b8a6025b1dc57c7582c4c1f1d54466f5.tar.gz |
eet: correctly initialize dictionary.
This should fix windows, we were lucky on Unix where the lock
are expected to be set to zero...
SVN revision: 75703
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | src/lib/eet_lib.c | 2 |
3 files changed, 6 insertions, 1 deletions
@@ -615,3 +615,7 @@ 2012-08-24 Cedric Bail * Add eet_connection_empty. + +2012-08-26 Cedric Bail + + * Correctly initialize dictionary correctly. @@ -14,6 +14,7 @@ Fixes: * Fix crash when cyphering huge amount of data. * Possible wrong size decoding of simple type. * Don't strdup string around for nothing. + * Always initialize dictionary correctly. Eet 1.6.0 diff --git a/src/lib/eet_lib.c b/src/lib/eet_lib.c index 48c6b84..98c9225 100644 --- a/src/lib/eet_lib.c +++ b/src/lib/eet_lib.c @@ -950,7 +950,7 @@ eet_internal_read2(Eet_File *ef) ef)) return NULL; - ef->ed = eet_dictionary_calloc(1); + ef->ed = eet_dictionary_add(); if (eet_test_close(!ef->ed, ef)) return NULL; |