Prevent warning from Eina Magic when hash population is 0.

SVN revision: 38049
This commit is contained in:
Cedric BAIL 2008-12-09 13:05:33 +00:00
parent 3c1b5cfb3c
commit d19801f7c2
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}