aboutsummaryrefslogtreecommitdiffstats
path: root/src/libexecline/el_gspawn0.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexecline/el_gspawn0.c')
-rw-r--r--src/libexecline/el_gspawn0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexecline/el_gspawn0.c b/src/libexecline/el_gspawn0.c
index 2a5cb97..eb66c91 100644
--- a/src/libexecline/el_gspawn0.c
+++ b/src/libexecline/el_gspawn0.c
@@ -8,5 +8,6 @@
pid_t el_gspawn0 (char const *prog, char const *const *argv, char const *const *envp)
{
if (!argv[0]) argv = el_trueargv ;
+ if (!prog) prog = argv[0] ;
return gcspawn(prog, argv, envp, 0, 0, 0) ;
}