diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-03-22 12:01:04 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@osg.samsung.com> | 2016-03-22 12:01:04 -0400 |
commit | 41f98b96bb368551642141a6f9cf0f82ddecf7d5 (patch) | |
tree | 0c9b21c89ad0fe8b7fd9c2ba833d42a8d796a848 | |
parent | c82f9ca55afa575cb3f897741a59374bad9b29e1 (diff) | |
download | enlightenment-41f98b96bb368551642141a6f9cf0f82ddecf7d5.tar.gz |
use eina_streq for e_util_binding_match() comparisons
optimizes what is likely a stringshare comparison as well as avoiding
null derefs
CID 1191998
-rw-r--r-- | src/bin/e_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c index add4d1f466..63c337e49c 100644 --- a/src/bin/e_utils.c +++ b/src/bin/e_utils.c @@ -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)++; |