cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5aa6a73b3461af4d67ba2dfe369ee2da3e11c9b5

commit 5aa6a73b3461af4d67ba2dfe369ee2da3e11c9b5
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Jan 4 15:13:06 2016 -0800

    eina: return NULL iterator in all case, not only when safety check is 
turned on.
---
 src/lib/eina/eina_hash.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/eina/eina_hash.c b/src/lib/eina/eina_hash.c
index fe2ec51..f950b19 100644
--- a/src/lib/eina/eina_hash.c
+++ b/src/lib/eina/eina_hash.c
@@ -1221,7 +1221,7 @@ eina_hash_iterator_data_new(const Eina_Hash *hash)
 {
    Eina_Iterator_Hash *it;
 
-   EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL);
+   if (!hash) return NULL;
    EINA_MAGIC_CHECK_HASH(hash);
 
    it = calloc(1, sizeof (Eina_Iterator_Hash));
@@ -1247,7 +1247,7 @@ eina_hash_iterator_key_new(const Eina_Hash *hash)
 {
    Eina_Iterator_Hash *it;
 
-   EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL);
+   if (!hash) return NULL;
    EINA_MAGIC_CHECK_HASH(hash);
 
    it = calloc(1, sizeof (Eina_Iterator_Hash));
@@ -1274,7 +1274,7 @@ eina_hash_iterator_tuple_new(const Eina_Hash *hash)
 {
    Eina_Iterator_Hash *it;
 
-   EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL);
+   if (!hash) return NULL;
    EINA_MAGIC_CHECK_HASH(hash);
 
    it = calloc(1, sizeof (Eina_Iterator_Hash));

-- 


Reply via email to