make one of the xkb functions less stupid

SVN revision: 83526
This commit is contained in:
Mike Blumenkrantz 2013-01-31 16:07:45 +00:00
parent 1b6904e063
commit 98bb1620f7
1 changed files with 6 additions and 2 deletions

View File

@ -221,8 +221,12 @@ e_xkb_layout_set(const char *name)
EAPI const char *
e_xkb_layout_name_reduce(const char *name)
{
if ((name) && (strchr(name, '/'))) name = strchr(name, '/') + 1;
return name;
const char *s;
if (!name) return NULL;
s = strchr(name, '/');
if (s) s++;
return s;
}
EAPI void