Skip to content

Commit 9435a4c

Browse files
committed
env_reexec: always initialize passthrough_env
- Fixes crash with os.setenv() when passthrough_env is uninitialized - Fixes crash on shutdown when passthrough_env is uninitialized
1 parent 0fcc022 commit 9435a4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

waywall/env_reexec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ env_reexec(char **argv) {
278278
if (read_passthrough_fd()) {
279279
ww_log(LOG_INFO, "skipping env_reexec (got passthrough fd)");
280280
return 0;
281+
} else {
282+
passthrough_env = list_envvar_create();
281283
}
282284

283285
for (char **arg = argv; *arg; arg++) {

0 commit comments

Comments
 (0)