summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-12-08 12:51:23 +0000
committerTom Hacohen <tom@stosb.com>2015-12-08 12:55:26 +0000
commit79399c08feebc99399769b39475e0133969c3473 (patch)
treefd2778c3b6b0a6d6f864ce3b0c8d98dda557965f
parent97b4a2d05c21751a7fe112ec00479ceef44af9c6 (diff)
Genlist: Add NULL item check to *_item_next_get().
It's there for _item_prev_get(), so I guess it's expected.
-rw-r--r--src/lib/elm_genlist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 5f3c94e69..cb42c92c8 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -6565,6 +6565,7 @@ _elm_genlist_last_item_get(Eo *obj EINA_UNUSED, Elm_Genlist_Data *sd)
6565EOLIAN static Elm_Object_Item * 6565EOLIAN static Elm_Object_Item *
6566_elm_genlist_item_next_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it) 6566_elm_genlist_item_next_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
6567{ 6567{
6568 if (!it) return NULL;
6568 ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd); 6569 ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
6569 6570
6570 if (!sd->filter) 6571 if (!sd->filter)