From 547704b65aae6771e984a28e214db43a578785e7 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 18 Feb 2012 22:53:07 +0000 Subject: [PATCH] Handle empty input on start --- command.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/command.c b/command.c index 0424f705..076187de 100644 --- a/command.c +++ b/command.c @@ -16,6 +16,12 @@ static int _valid_start_command(char *cmd); int handle_start_command(char *inp) { int result; + + // handle nothing + if (strlen(inp) == 0) { + gui_refresh(); + return AWAIT_COMMAND; + } // trim input and take a copy char inp_cpy[100];