From: Leo C Date: Sun, 29 Jul 2018 07:28:08 +0000 (+0200) Subject: cli.c: The real bugfix for Comment only lines. X-Git-Tag: hexrel-6.9.0~49 X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/commitdiff_plain/7a66f43c3becd7b65933e750faf99b691dbdcdf3 cli.c: The real bugfix for Comment only lines. --- diff --git a/avr/cli.c b/avr/cli.c index b47603a..7c45251 100644 --- a/avr/cli.c +++ b/avr/cli.c @@ -309,6 +309,10 @@ static int cli_run_command(const char *cmd, uint_fast8_t flag) } else { str = sep; /* no more commands for next pass */ } + while (isblank(*token)) + ++token; + if (*token == '\0') /* empty (comment only) */ + continue; debug_parser("token: \"%s\"\n", token); /* find macros in this token and replace them */