git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15384 27425a3e-05d8-49a3-a47f-9c15f0e5edd8

This commit is contained in:
Giovanni Di Sirio 2022-01-21 19:49:55 +00:00
parent daa8afb1df
commit ce119aef13
1 changed files with 4 additions and 4 deletions

View File

@ -216,11 +216,11 @@ static bool shell_execute(int argc, char *argv[]) {
}
else {
static char pathbuf[1024];
char *p, *paths;
char *p;
paths = getenv("PATH");
if (paths == NULL) {
paths = SHELL_DEFAULT_PATH;
p = getenv("PATH");
if (p == NULL) {
p = SHELL_DEFAULT_PATH;
}
/* Searching for executable.*/