Bugfix: Don’t increment 'walk' before checking it (Thanks MasterofJOKers)
This commit is contained in:
parent
fd8e1c98c9
commit
a2823d3aeb
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue