From: Michael Stapelberg Date: Thu, 19 Jan 2012 19:01:47 +0000 (+0000) Subject: Bugfix: Don’t increment 'walk' before checking it (Thanks MasterofJOKers) X-Git-Tag: 4.2~138 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2823d3aebead090be91fe2b91c046caac4cd9fa;p=i3%2Fi3 Bugfix: Don’t increment 'walk' before checking it (Thanks MasterofJOKers) --- diff --git a/src/commands_parser.c b/src/commands_parser.c index 04130526..af0afe02 100644 --- a/src/commands_parser.c +++ b/src/commands_parser.c @@ -287,7 +287,6 @@ char *parse_command(const char *input) { DLOG("checking for the end token.\n"); if (*walk == '\0' || *walk == ',' || *walk == ';') { DLOG("yes, indeed. end\n"); - walk++; next_state(token); token_handled = true; /* To make sure we start with an appropriate matching @@ -299,6 +298,7 @@ char *parse_command(const char *input) { if (*walk == '\0' || *walk == ';') cmd_criteria_init(¤t_match); #endif + walk++; break; } }