aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--win32/process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/process.c b/win32/process.c
index 1ee576055..65c65b0d0 100644
--- a/win32/process.c
+++ b/win32/process.c
@@ -368,9 +368,7 @@ mingw_spawnvp(int mode, const char *cmd, char *const *argv)
368 } 368 }
369 if (unix_path(cmd)) 369 if (unix_path(cmd))
370 cmd = bb_basename(cmd); 370 cmd = bb_basename(cmd);
371 } 371 } else if ((path = find_first_executable(cmd)) != NULL) {
372
373 if ((path = find_first_executable(cmd)) != NULL) {
374 ret = mingw_spawn_interpreter(mode, path, argv, NULL, 0); 372 ret = mingw_spawn_interpreter(mode, path, argv, NULL, 0);
375 free(path); 373 free(path);
376 return ret; 374 return ret;