forked from enlightenment/efl
elm_genlist.c: do not check null. it should not be a null and it was already dereferenced.
This fixes 'dereference before null check' issue which was spotted by coverity. CID 1040000.
This commit is contained in:
parent
14c7bf8039
commit
d66e2ed136
|
@ -3309,7 +3309,6 @@ _swipe_do(Elm_Gen_Item *it)
|
|||
int i, sum = 0;
|
||||
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
|
||||
|
||||
if (!it) return;
|
||||
if ((it->select_mode == ELM_OBJECT_SELECT_MODE_DISPLAY_ONLY) ||
|
||||
elm_widget_item_disabled_get(it)) return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue