Skip to content

Commit

Permalink
fix another regression of 234e221
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Jul 11, 2024
1 parent 4c0e0d0 commit 7ff153d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,10 @@ static void advance_cmd_arg(void)
while (*extr == ' ' || *extr == '\t')
extr++;
if (*extr == '\0')
{
cmd_args[0] = '\0';
goto NoArgs;
}

while (*extr != ' ' && *extr != '\t' && *extr != '\0')
{
Expand All @@ -545,7 +548,10 @@ static void advance_cmd_arg(void)
break;
}
if (*extr == '\0')
{
cmd_args[0] = '\0';
goto NoArgs;
}
if (*extr == ';')
{
memmove(cmd_args, extr, strlen(extr)+1);
Expand Down

0 comments on commit 7ff153d

Please sign in to comment.