use eina_streq for e_util_binding_match() comparisons

optimizes what is likely a stringshare comparison as well as avoiding
null derefs

CID 1191998
This commit is contained in:
Mike Blumenkrantz 2016-03-22 12:01:04 -04:00
parent d7e22929c2
commit 8344b79020
1 changed files with 1 additions and 1 deletions

View File

@ -1176,7 +1176,7 @@ e_util_binding_match(const Eina_List *bindlist, Ecore_Event_Key *ev, unsigned in
{
if (bi != skip)
{
if ((bi->modifiers == mod) && (!strcmp(bi->key, ev->key)))
if ((bi->modifiers == mod) && eina_streq(bi->key, ev->key))
return bi;
}
if (num) (*num)++;