do not segv on NULL inlist.

this was exposed by "make check", counter had no tests and it was failing.



SVN revision: 37957
This commit is contained in:
Gustavo Sverzut Barbieri 2008-12-06 06:11:39 +00:00
parent a00eaac6a6
commit 6203f4b6be
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ EAPI Eina_Iterator *eina_inlist_iterator_new(const Eina_Inlist *in_list);
EAPI Eina_Accessor *eina_inlist_accessor_new(const Eina_Inlist *in_list);
#define EINA_INLIST_FOREACH(list, l) for (l = (void*)list; l; l = (void*)(l->__in_list.next))
#define EINA_INLIST_REVERSE_FOREACH(list, l) for (l = (void*)(list->last); l; l = (void*)(l->__in_list.prev))
#define EINA_INLIST_REVERSE_FOREACH(list, l) for (l = (list ? (void*)(list->last) : NULL); l; l = (void*)(l->__in_list.prev))
/** @} */