aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-07-21 09:59:31 +0000
committerKalle Wallin <kaw@linux.se>2004-07-21 09:59:31 +0000
commit560af7a8534f1561be31fcd176b9000274d5dc45 (patch)
tree4051f268f533b8b755a203cc538a8a079ac8969a /src
parent8a353e9ea3f1862ced9049468d6a049b0ef0d951 (diff)
downloadmpd-560af7a8534f1561be31fcd176b9000274d5dc45.tar.gz
mpd-560af7a8534f1561be31fcd176b9000274d5dc45.tar.xz
mpd-560af7a8534f1561be31fcd176b9000274d5dc45.zip
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
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 ||