From a8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 9 Jul 2020 09:29:59 +0100 Subject: ash: tidy code, no functional change --- shell/ash.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index 8a6097211..9c5fbf5ff 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -8726,10 +8726,9 @@ static void shellexec(char *prog, char **argv, const char *path, int idx) int applet_no = -1; /* used only by FEATURE_SH_STANDALONE */ envp = listvars(VEXPORT, VUNSET, /*strlist:*/ NULL, /*end:*/ NULL); -#if ENABLE_PLATFORM_MINGW32 - if ((strchr(prog, '/') || strchr(prog, '\\') || has_dos_drive_prefix(prog)) -#else if (strchr(prog, '/') != NULL +#if ENABLE_PLATFORM_MINGW32 + || strchr(prog, '\\') != NULL || has_dos_drive_prefix(prog) #endif #if ENABLE_FEATURE_SH_STANDALONE || (applet_no = find_applet_by_name(prog)) >= 0 -- cgit v1.2.3-55-g6feb