From 472a96137b90eb1a2ea3b8de1cb144f73e115942 Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 15 May 2012 07:19:30 +0000 Subject: eet: backport r71097. SVN revision: 71098 --- src/lib/eet_dictionary.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/eet_dictionary.c b/src/lib/eet_dictionary.c index f307d4d..35e8570 100644 --- a/src/lib/eet_dictionary.c +++ b/src/lib/eet_dictionary.c @@ -90,6 +90,7 @@ eet_dictionary_string_add(Eet_Dictionary *ed, int hash; int idx; int len; + int cnt; if (!ed) return -1; @@ -156,8 +157,9 @@ eet_dictionary_string_add(Eet_Dictionary *ed, ed->hash[hash] = ed->count; } + cnt = ed->count++; eina_lock_release(&ed->mutex); - return ed->count++; + return cnt; on_error: eina_lock_release(&ed->mutex); -- cgit v1.2.1