summaryrefslogtreecommitdiff
path: root/src/locale/keymap-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/locale/keymap-util.c')
-rw-r--r--src/locale/keymap-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c
index fe29594ccc..17bef9e481 100644
--- a/src/locale/keymap-util.c
+++ b/src/locale/keymap-util.c
@@ -39,7 +39,7 @@ static bool startswith_comma(const char *s, const char *prefix) {
if (!s)
return false;
- return *s == ',';
+ return *s == ',' || *s == '\0';
}
static const char* strnulldash(const char *s) {