forked from enlightenment/terminology
fix CID1100650: possible NULL dereference
This commit is contained in:
parent
5cd68f3beb
commit
dafb51f66e
|
@ -2075,6 +2075,7 @@ _smart_cb_key_down(void *data, Evas *e EINA_UNUSED,
|
||||||
int ctrl = evas_key_modifier_is_set(ev->modifiers, "Control");
|
int ctrl = evas_key_modifier_is_set(ev->modifiers, "Control");
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN(sd);
|
EINA_SAFETY_ON_NULL_RETURN(sd);
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(ev->key);
|
||||||
if ((!alt) && (ctrl) && (!shift))
|
if ((!alt) && (ctrl) && (!shift))
|
||||||
{
|
{
|
||||||
if (!strcmp(ev->key, "Prior"))
|
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;
|
int by = sd->grid.h - 2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue