summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2012-08-26 02:00:48 +0000
committerCedric BAIL <cedric.bail@free.fr>2012-08-26 02:00:48 +0000
commit8fd67313b8a6025b1dc57c7582c4c1f1d54466f5 (patch)
tree141660797376bb3d906ef9bf8775564719eb873b
parentca8dc00af10afa50dd541d3ed68c0290b81a693f (diff)
downloadeet-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--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/lib/eet_lib.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8079e30..d20611c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -615,3 +615,7 @@
2012-08-24 Cedric Bail
* Add eet_connection_empty.
+
+2012-08-26 Cedric Bail
+
+ * Correctly initialize dictionary correctly.
diff --git a/NEWS b/NEWS
index a84db86..58b583a 100644
--- a/NEWS
+++ b/NEWS
@@ -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;