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:
Daniel Juyung Seo 2013-07-06 12:56:58 +09:00
parent 14c7bf8039
commit d66e2ed136
1 changed files with 0 additions and 1 deletions

View File

@ -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;