Fix return value on ecore hash when key already exists in hash.

SVN revision: 20473
This commit is contained in:
rbdpngn 2006-02-15 05:06:01 +00:00 committed by rbdpngn
parent d214a5ad7e
commit ad83be938c
1 changed files with 3 additions and 1 deletions

View File

@ -147,8 +147,10 @@ EAPI int ecore_hash_set(Ecore_Hash *hash, void *key, void *value)
CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE);
node = _ecore_hash_get_node(hash, key);
if (node)
if (node) {
node->value = value;
ret = TRUE;
}
else {
node = _ecore_hash_node_new(key, value);
if (node)