diff options
author | Tomasz Konojacki <me@xenu.pl> | 2022-04-19 16:41:23 +0200 |
---|---|---|
committer | xenu <me@xenu.pl> | 2022-05-29 00:54:10 +0200 |
commit | 66673af5955ecc69305b0baad0a8fb6162312409 (patch) | |
tree | ff6230ba36209f14b77f4aa92dbaa563a829e2b8 /perl.c | |
parent | 471430840e1f4a41f79744508c22d7569e6ed3f8 (diff) | |
download | perl-66673af5955ecc69305b0baad0a8fb6162312409.tar.gz |
make PL_origenviron global
The purpose of PL_origenviron is to preserve the earliest known value
of environ, which is a global. All interpreters should share it.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -360,7 +360,8 @@ perl_construct(pTHXx) #ifndef PERL_MICRO # ifdef USE_ENVIRON_ARRAY - PL_origenviron = environ; + if (!PL_origenviron) + PL_origenviron = environ; # endif #endif |