From 560af7a8534f1561be31fcd176b9000274d5dc45 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Wed, 21 Jul 2004 09:59:31 +0000 Subject: [PATCH] Dont lookup key if key==0 in find_key_command() git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1889 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.c b/src/command.c index d38402b..aecf31a 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 || -- 2.30.2