From a2823d3aebead090be91fe2b91c046caac4cd9fa Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 19 Jan 2012 19:01:47 +0000 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20increment=20'walk'=20b?= =?utf8?q?efore=20checking=20it=20(Thanks=20MasterofJOKers)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/commands_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5