fix CID1100650: possible NULL dereference

This commit is contained in:
Boris Faure 2014-04-12 14:33:31 +02:00
parent 5cd68f3beb
commit dafb51f66e
1 changed files with 2 additions and 1 deletions

View File

@ -2075,6 +2075,7 @@ _smart_cb_key_down(void *data, Evas *e EINA_UNUSED,
int ctrl = evas_key_modifier_is_set(ev->modifiers, "Control");
EINA_SAFETY_ON_NULL_RETURN(sd);
EINA_SAFETY_ON_NULL_RETURN(ev->key);
if ((!alt) && (ctrl) && (!shift))
{
if (!strcmp(ev->key, "Prior"))
@ -2222,7 +2223,7 @@ _smart_cb_key_down(void *data, Evas *e EINA_UNUSED,
}
}
}
if ((shift) && (ev->key))
if (shift)
{
int by = sd->grid.h - 2;