From dafb51f66e75761ac5eaab0619f44e9e9fbf4dee Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 12 Apr 2014 14:33:31 +0200 Subject: [PATCH] fix CID1100650: possible NULL dereference --- src/bin/termio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index e8b8ef01..01fd7438 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -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;