From ad83be938c28fe44ecf1c846ed4dc4d64d609eab Mon Sep 17 00:00:00 2001 From: rbdpngn Date: Wed, 15 Feb 2006 05:06:01 +0000 Subject: [PATCH] Fix return value on ecore hash when key already exists in hash. SVN revision: 20473 --- legacy/ecore/src/lib/ecore/ecore_hash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/ecore/src/lib/ecore/ecore_hash.c b/legacy/ecore/src/lib/ecore/ecore_hash.c index 3334a178bd..85a4a88e7a 100644 --- a/legacy/ecore/src/lib/ecore/ecore_hash.c +++ b/legacy/ecore/src/lib/ecore/ecore_hash.c @@ -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) -- 2.34.1