summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-12-08 12:50:25 +0000
committerTom Hacohen <tom@stosb.com>2015-12-08 12:55:20 +0000
commit97b4a2d05c21751a7fe112ec00479ceef44af9c6 (patch)
tree9cca898ebdf027e3b597561aa168e8ab37dcce04
parent6045f24446c55560a7ad9e7631f47bb00b739cf6 (diff)
Genlist: Put null check before the deref.
CID1339825
-rw-r--r--src/lib/elm_genlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 020ab24bb..5f3c94e69 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -6591,9 +6591,9 @@ _elm_genlist_item_next_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
6591EOLIAN static Elm_Object_Item * 6591EOLIAN static Elm_Object_Item *
6592_elm_genlist_item_prev_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it) 6592_elm_genlist_item_prev_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
6593{ 6593{
6594 if (!it) return NULL;
6594 ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd); 6595 ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
6595 6596
6596 if (!it) return NULL;
6597 if (!sd->filter) 6597 if (!sd->filter)
6598 { 6598 {
6599 while (it) 6599 while (it)