aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index d38402b2c..aecf31ab7 100644
--- a/src/command.c
+++ b/src/command.c
@@ -362,7 +362,7 @@ find_key_command(int key, command_definition_t *cmds)
int i;
i=0;
- while( cmds && cmds[i].name )
+ while( key && cmds && cmds[i].name )
{
if( cmds[i].keys[0] == key ||
cmds[i].keys[1] == key ||