e_bindings_key_allowed() handles NULL param

CID 1191998
This commit is contained in:
Mike Blumenkrantz 2014-04-04 13:26:25 -04:00
parent cb3548f0f6
commit 358ba0f36f
1 changed files with 1 additions and 0 deletions

View 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")) ||