]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t increment 'walk' before checking it (Thanks MasterofJOKers)
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 19 Jan 2012 19:01:47 +0000 (19:01 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 19 Jan 2012 19:01:47 +0000 (19:01 +0000)
src/commands_parser.c

index 04130526257adb7f4ab7160b3dd54d898d19b5f2..af0afe02a69b80cb13d3eb0d50e2dc30661333ac 100644 (file)
@@ -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(&current_match);
 #endif
+                    walk++;
                     break;
                }
            }