genlist: Fix dereference before null check.

This fixes coverity CID 1258636.
No backport needed.
This commit is contained in:
Daniel Juyung Seo 2014-12-16 23:54:13 +09:00
parent 8d4437b1f9
commit 4a61d3955e
1 changed files with 2 additions and 2 deletions

View File

@ -2791,11 +2791,11 @@ _item_swap_cb(void *data, double pos)
static void
_swap_items(Elm_Gen_Item *it1, Elm_Gen_Item *it2, Elm_Focus_Direction dir)
{
if (!it1 || !it2) return;
ELM_GENLIST_DATA_GET_FROM_ITEM(it1, sd);
Evas_Coord xx1, yy1, xx2, yy2;
if (!it1 || !it2) return;
sd->reorder.running = EINA_TRUE;
sd->reorder.dir = dir;
sd->reorder.it1 = it1;