Skip to content

Commit

Permalink
add braces around else portion so can clearly see CMDLINE is cleared …
Browse files Browse the repository at this point in the history
…always
  • Loading branch information
PerditionC committed Jul 10, 2021
1 parent e3c5d68 commit 1a47ca5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shell/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,11 @@ void execute(char *first, char *rest, int lh_lf)
env_nullStrings(0);

setErrorLevel(result);
} else
} else { /* not bat, exe, or com file */
error_bad_command(first);
}

/* clear CMDLINE once return from program execution so not still in environment */
chgEnv( "CMDLINE", NULL );
}

Expand Down

0 comments on commit 1a47ca5

Please sign in to comment.