summaryrefslogtreecommitdiffstats
path: root/exec.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-06-13 15:52:34 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-06-13 15:52:34 -0400
commitae15c5abe0bb2d8bd5fd3502721288bcb1a85d59 (patch)
tree6820851fba0f52ff6be9e96bc0480e328a3bb65d /exec.c
parent78e968dd789ca8d1cac8da3715352184bca2a188 (diff)
downloadbfs-ae15c5abe0bb2d8bd5fd3502721288bcb1a85d59.tar.xz
spawn: Allow NULL envp for the current environment
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index bc01808..431fcbe 100644
--- a/exec.c
+++ b/exec.c
@@ -374,7 +374,7 @@ static int bfs_exec_spawn(const struct bfs_exec *execbuf) {
}
}
- pid = bfs_spawn(execbuf->argv[0], &ctx, execbuf->argv, environ);
+ pid = bfs_spawn(execbuf->argv[0], &ctx, execbuf->argv, NULL);
fail:
error = errno;
bfs_spawn_destroy(&ctx);