aboutsummaryrefslogtreecommitdiff
path: root/libbb/run-command.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/run-command.c')
-rw-r--r--libbb/run-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/run-command.c b/libbb/run-command.c
index d4d78e9bc..bac8f0e66 100644
--- a/libbb/run-command.c
+++ b/libbb/run-command.c
@@ -174,7 +174,7 @@ int start_command(struct child_process *cmd)
174 } 174 }
175#endif 175#endif
176 176
177 cmd->pid = mingw_spawnvpe(cmd->argv[0], cmd->argv, env); 177 cmd->pid = mingw_spawnvpe(cmd->cmd ? cmd->cmd : cmd->argv[0], cmd->argv, env);
178 178
179 if (cmd->env) 179 if (cmd->env)
180 free_environ(env); 180 free_environ(env);