tasn pushed a commit to branch master.

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

commit de6f57fac0a21f7729893b5d3d7a5606e9dcb1ce
Author: Tom Hacohen <[email protected]>
Date:   Mon Sep 30 14:28:38 2013 +0100

    Eina inlist: Removed redundant if in EINA_INLIST_FOREACH_SAFE.
    
    If it is not NULL, so will EINA_INLIST_GET. As that returns a pointer to an
    area after it.
---
 src/lib/eina/eina_inlist.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eina/eina_inlist.h b/src/lib/eina/eina_inlist.h
index e3f1576..ba7ffec 100644
--- a/src/lib/eina/eina_inlist.h
+++ b/src/lib/eina/eina_inlist.h
@@ -843,7 +843,7 @@ EAPI Eina_Inlist *eina_inlist_sort(Eina_Inlist *head, 
Eina_Compare_Cb func);
  * that is part of the list.
  */
 #define EINA_INLIST_FOREACH_SAFE(list, list2, it) \
-   for (it = NULL, it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), 
list2 = it ? ((EINA_INLIST_GET(it) ? EINA_INLIST_GET(it)->next : NULL)) : NULL; 
\
+   for (it = NULL, it = (list ? _EINA_INLIST_CONTAINER(it, list) : NULL), 
list2 = it ? EINA_INLIST_GET(it)->next : NULL; \
         it; \
         it = list2 ? _EINA_INLIST_CONTAINER(it, list2) : NULL, list2 = list2 ? 
list2->next : NULL)
 

-- 


Reply via email to