]> git.proxmox.com Git - wasi-libc.git/commit
Ensure that `environ` is always initialized.
authorDan Gohman <sunfish@mozilla.com>
Tue, 7 May 2019 16:24:10 +0000 (09:24 -0700)
committerDan Gohman <sunfish@mozilla.com>
Tue, 7 May 2019 18:35:48 +0000 (11:35 -0700)
commit07858345bc489ad633054e36061979ebc1624424
tree2afec4c29b46b7ac644e5201f8a4e57cfdaf828b
parentb40521edc3209d51af32f08d12bd8ee6ff16e907
Ensure that `environ` is always initialized.

Initialize `environ` even if there are no environment variables, so that
it alwasy points to a NULL-terminated array even if that array just
contains the NULL. This fixes src/functional/env.c.
libc-bottom-half/crt/crt1.c