aboutsummaryrefslogtreecommitdiffstats
path: root/src/libenvexec
diff options
context:
space:
mode:
Diffstat (limited to 'src/libenvexec')
-rw-r--r--src/libenvexec/child_spawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libenvexec/child_spawn.c b/src/libenvexec/child_spawn.c
index 164f1b2..62aedb9 100644
--- a/src/libenvexec/child_spawn.c
+++ b/src/libenvexec/child_spawn.c
@@ -35,6 +35,7 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const
m += uint_fmt(modifs + m, p[i][!(i & 1)]) ;
if (i+1 < n) modifs[m++] = ',' ;
}
+ i = n ;
modifs[m++] = 0 ;
env_mergen(newenv, envlen + 2, envp, envlen, modifs, m, 1) ;
if (n) fa[0].x.fd2[1] = p[0][1] ;