fix flag reduce case for when name has no / character

SVN revision: 83530
This commit is contained in:
Mike Blumenkrantz 2013-01-31 17:24:31 +00:00
parent 5cd11a890d
commit a4d35ff86c
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ e_xkb_layout_name_reduce(const char *name)
if (!name) return NULL;
s = strchr(name, '/');
if (s) s++;
else s = name;
return s;
}