Skip to content

Ensure __environ is initialized even when it's empty.#125

Merged
sunfishcode merged 1 commit intomasterfrom
empty-environ
Oct 28, 2019
Merged

Ensure __environ is initialized even when it's empty.#125
sunfishcode merged 1 commit intomasterfrom
empty-environ

Conversation

@sunfishcode
Copy link
Copy Markdown
Member

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.

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.
@sunfishcode sunfishcode merged commit a8a5dbc into master Oct 28, 2019
@sunfishcode sunfishcode deleted the empty-environ branch October 28, 2019 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants