aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-31 16:07:45 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-31 16:07:45 +0000
commit98bb1620f79d1d849dbc66a3143a8d0700c75271 (patch)
tree6f69077916834ef7f4fd797db955a4a2f61450f1
parentefm now ignores .part file changes (diff)
downloadenlightenment-98bb1620f79d1d849dbc66a3143a8d0700c75271.tar.gz
make one of the xkb functions less stupid
SVN revision: 83526
-rw-r--r--src/bin/e_xkb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/bin/e_xkb.c b/src/bin/e_xkb.c
index e1984da47..74b2426e1 100644
--- a/src/bin/e_xkb.c
+++ b/src/bin/e_xkb.c
@@ -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