diff --git a/src/system/libroot/posix/stdlib/env.c b/src/system/libroot/posix/stdlib/env.c index e322b12122..4a7d6a7a68 100644 --- a/src/system/libroot/posix/stdlib/env.c +++ b/src/system/libroot/posix/stdlib/env.c @@ -93,6 +93,7 @@ copy_environ_to_heap_if_needed(void) newEnv[i] = NULL; // null terminate the array + environ = newEnv; sCopied = true; return B_OK; }