summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-08-13 20:22:35 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-08-13 20:22:35 +0200
commitc45a9f6acb3d2799e131ff3dd87fdb49d438e630 (patch)
tree8ef4657888c76daa4bc95eead34db7b99c90b356 /src
parentf8ffc1b1d7790cf56cb7f766104243186d990a3a (diff)
ignore KEYCODE_NONE, refs #149
Diffstat (limited to 'src')
-rw-r--r--src/cmd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd.c b/src/cmd.c
index b46ba84..7cf3e80 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -479,6 +479,11 @@ int cmd_process(struct commands *commands, struct cmd_ctx **ctxp, char key,
if (!commands)
return EINVAL;
+ if (key == KEYCODE_NONE) {
+ warning("cmd: process: illegal keycode NONE\n");
+ return EINVAL;
+ }
+
/* are we in edit-mode? */
if (ctxp && *ctxp) {