The patch properly defines environ as an array of pointers, the last of which is NULL. In the previous definition, environ was NULL, which is not OK. The definition is now replaced to an array of a single NULL element.
Without this path, Nginx will not work with Musl.
I took inspiration from the way environ is (properly) defined in newlibc.
The patch properly defines
environ
as an array of pointers, the last of which isNULL
. In the previous definition,environ
was NULL, which is not OK. The definition is now replaced to an array of a singleNULL
element.Without this path, Nginx will not work with Musl.
I took inspiration from the way
environ
is (properly) defined innewlibc
.