forked from enlightenment/efl
genlist: Fix dereference before null check.
This fixes coverity CID 1258636. No backport needed.
This commit is contained in:
parent
8d4437b1f9
commit
4a61d3955e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue