From: Jonathan Neuschäfer Date: Fri, 3 Feb 2012 18:43:46 +0000 (+0100) Subject: command: don't crash on Ctrl-Space X-Git-Tag: release-0.20~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=01801d1209123e4ff9301abb646591c48463f7a5;p=ncmpc.git command: don't crash on Ctrl-Space --- diff --git a/src/command.c b/src/command.c index a11a8dc..e366333 100644 --- a/src/command.c +++ b/src/command.c @@ -445,7 +445,7 @@ get_keyboard_command(void) int key; key = wgetch(stdscr); - if (key == ERR) + if (key == ERR || key == '\0') return CMD_NONE; #ifdef HAVE_GETMOUSE