diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c index 8b27943c68..38a8b23c3f 100644 --- a/legacy/elementary/src/lib/elm_genlist.c +++ b/legacy/elementary/src/lib/elm_genlist.c @@ -1139,10 +1139,11 @@ static Item_Cache * _item_cache_find(Elm_Gen_Item *it) { Item_Cache *itc; + Eina_Inlist *l; Eina_Bool tree = 0; if (it->item->type & ELM_GENLIST_ITEM_TREE) tree = 1; - EINA_INLIST_FOREACH_SAFE (GL_IT(it)->wsd->item_cache, itc) + EINA_INLIST_FOREACH_SAFE (GL_IT(it)->wsd->item_cache, l, itc) { if ((itc->selected) || (itc->disabled) || (itc->expanded)) continue;