]> git.proxmox.com Git - wasi-libc.git/commit
Ensure `__environ` is initialized even when it's empty. (#125)
authorDan Gohman <sunfish@mozilla.com>
Mon, 28 Oct 2019 17:34:57 +0000 (10:34 -0700)
committerGitHub <noreply@github.com>
Mon, 28 Oct 2019 17:34:57 +0000 (10:34 -0700)
commita8a5dbcf915209238709054c9d5ac9456094793a
tree0828e9377e81b4f403541f2fce9e233666bc6791
parentafbf94c39e733961de6f161fc5b25cf56d3e4ca3
Ensure `__environ` is initialized even when it's empty. (#125)

POSIX requires `environ` to be a pointer to a NULL-terminated array of
pointers, so it itself can't be NULL.

This fixes a regression in src/functional/env.c in wasi-libc-test.
libc-bottom-half/sources/__environ.c