summaryrefslogtreecommitdiff
path: root/src/libstddjb/child_spawn.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-01-03 12:09:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-01-03 12:09:01 +0000
commit6b69c1f8921d0f692e9aaa65d21349e01ecc670b (patch)
tree0e1dec679b84fb933504063516c8ab98f5765298 /src/libstddjb/child_spawn.c
parented40369c8610914085d568ec57701a035bf8dd29 (diff)
downloadskalibs-6b69c1f8921d0f692e9aaa65d21349e01ecc670b.tar.xz
Add child_spawn3, make textclient_startf use it
Diffstat (limited to 'src/libstddjb/child_spawn.c')
-rw-r--r--src/libstddjb/child_spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/child_spawn.c b/src/libstddjb/child_spawn.c
index 82edf8a..964e4e2 100644
--- a/src/libstddjb/child_spawn.c
+++ b/src/libstddjb/child_spawn.c
@@ -95,7 +95,7 @@ pid_t child_spawn (char const *prog, char const *const *argv, char const *const
int haspath = !!getenv("PATH") ;
size_t envlen = env_len(envp) ;
char const *newenv[envlen + 2] ;
- if (!env_merge(newenv, envlen+2, envp, envlen, modifs, m)) goto errsp ;
+ if (!env_merge(newenv, envlen+2, envp, envlen, modifs, m)) goto erractions ;
if (!haspath && (setenv("PATH", SKALIBS_DEFAULTPATH, 0) < 0))
{
e = errno ; goto erractions ;