From ce119aef132d7ddb1aed5ad8368cebd174daa6aa Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 21 Jan 2022 19:49:55 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@15384 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/sb/apps/msh/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/os/sb/apps/msh/main.c b/os/sb/apps/msh/main.c index e3644c069..7de1ff019 100644 --- a/os/sb/apps/msh/main.c +++ b/os/sb/apps/msh/main.c @@ -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.*/