summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/eet_dictionary.c4
1 files changed, 3 insertions, 1 deletions
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);