From fdce0ab907454d06b102ef7a9e923772765d69f8 Mon Sep 17 00:00:00 2001 From: cedric Date: Tue, 9 Dec 2008 13:05:33 +0000 Subject: [PATCH] Prevent warning from Eina Magic when hash population is 0. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@38049 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/eina_hash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/eina_hash.c b/src/lib/eina_hash.c index d20f2ba..8038f60 100644 --- a/src/lib/eina_hash.c +++ b/src/lib/eina_hash.c @@ -1175,6 +1175,8 @@ eina_hash_foreach(const Eina_Hash *hash, foreach.fdata = fdata; it = eina_hash_iterator_tuple_new(hash); + if (!it) return; + eina_iterator_foreach(it, EINA_EACH(_eina_foreach_cb), &foreach); eina_iterator_free(it); } -- 2.7.4