projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d09f7
)
reduce strstr use in xkb parser
author
Mike Blumenkrantz
<zmike@samsung.com>
Fri, 4 Apr 2014 19:14:08 +0000
(15:14 -0400)
committer
Mike Blumenkrantz
<zmike@samsung.com>
Fri, 4 Apr 2014 19:14:08 +0000
(15:14 -0400)
CID
1039849
src/modules/xkbswitch/e_mod_parse.c
patch
|
blob
|
history
diff --git
a/src/modules/xkbswitch/e_mod_parse.c
b/src/modules/xkbswitch/e_mod_parse.c
index 6f815e443d5321a2a9e1cf869d35127d6aa7ae26..fa21d35bc874019554278786594cb8095afddc40 100644
(file)
--- a/
src/modules/xkbswitch/e_mod_parse.c
+++ b/
src/modules/xkbswitch/e_mod_parse.c
@@
-236,9
+236,9
@@
parse_rules(void)
/* A hack to get it to parse right if
* the group name contains a space
*/
- if (strstr(p, " "))
+ p = strstr(p, " ");
+ if (p)
{
- p = strstr(p, " ");
while (p[0] == ' ')
++p;
}