summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index 6bf0d06..9a2db18 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -231,6 +231,12 @@ parse_keydesc (char *keydesc)
/* Its got hyphens, so parse out the modifiers and keysym */
token = strtok (keydesc, "-");
+ if (token == NULL)
+ {
+ /* It was nothing but hyphens */
+ return NULL;
+ }
+
do
{
next_token = strtok (NULL, "-");