discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=19bc0d5a5e2b9ef9d13508ef854b5450520bc322

commit 19bc0d5a5e2b9ef9d13508ef854b5450520bc322
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Fri Apr 4 15:14:08 2014 -0400

    reduce strstr use in xkb parser
    
    CID 1039849
---
 src/modules/xkbswitch/e_mod_parse.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/xkbswitch/e_mod_parse.c 
b/src/modules/xkbswitch/e_mod_parse.c
index 6f815e4..fa21d35 100644
--- 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;
                        }

-- 


Reply via email to