forked from enlightenment/efl
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:
parent
a00eaac6a6
commit
6203f4b6be
|
@ -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))
|
||||
|
||||
/** @} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue