reduce strstr use in xkb parser

CID 1039849
This commit is contained in:
Mike Blumenkrantz 2014-04-04 15:14:08 -04:00
parent 05d09f7c51
commit 19bc0d5a5e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}