bu5hm4n pushed a commit to branch master.

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

commit ab1fd96363b630df1f5b3cb145eade3466b74b75
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Aug 2 16:42:56 2018 -0400

    elm/genlist: use correct type of list when iterating
    
    itb-items is Eina_List, not Eina_Inlist. this crashes due to wrong type
    use
    
    ref D6720
    fix T7246
    
    Differential Revision: https://phab.enlightenment.org/D6736
---
 src/lib/elementary/elm_genlist.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 9523017b35..854d3e569c 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -4362,12 +4362,13 @@ _update_block_registration(Item_Block *itb, 
Elm_Gen_Item *element)
 {
    Elm_Gen_Item *it = NULL;
    Eina_List *order = NULL;
+   const Eina_List *l;
 
    if (!itb->realized) return;
 
    efl_ui_focus_manager_calc_register_logical(itb->sd->obj, EO_OBJ(element), 
itb->adapter, NULL);
 
-   EINA_INLIST_FOREACH(itb->items, it)
+   EINA_LIST_FOREACH(itb->items, l, it)
      {
         order = eina_list_append(order, EO_OBJ(it));
      }

-- 


Reply via email to