forked from enlightenment/enlightenment
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:
parent
c82f9ca55a
commit
41f98b96bb
|
@ -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)++;
|
||||
|
|
Loading…
Reference in New Issue