diff options
author | Cedric BAIL <cedric.bail@free.fr> | 2012-05-15 07:19:30 +0000 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2012-05-15 07:19:30 +0000 |
commit | 472a96137b90eb1a2ea3b8de1cb144f73e115942 (patch) | |
tree | c6aaecc82b82bc6fe2130c27e8f575e4fc604af3 | |
parent | 78281dd0d9e83652d820be1aeee06c3f6a181a21 (diff) | |
download | eet-472a96137b90eb1a2ea3b8de1cb144f73e115942.tar.gz |
eet: backport r71097.
SVN revision: 71098
-rw-r--r-- | src/lib/eet_dictionary.c | 4 |
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); |