e_bindings_key_allowed() handles NULL param
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 4 Apr 2014 17:26:25 +0000 (13:26 -0400)
committerMike Blumenkrantz <zmike@samsung.com>
Fri, 4 Apr 2014 19:04:27 +0000 (15:04 -0400)
CID 1191998

src/bin/e_bindings.c

index bd982fe869254c5bea532cbd2fdd19813d3534f0..0b9ce265ba027a183b6945817bd62838999dd946 100644 (file)
@@ -743,6 +743,7 @@ e_bindings_key_up_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev)
 EAPI Eina_Bool
 e_bindings_key_allowed(const char *key)
 {
+   if (!key) return EINA_FALSE;
    if ((!strcmp(key, "Shift_L")) ||
        (!strcmp(key, "Shift_R")) ||
        (!strcmp(key, "Control_L")) ||