summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorTomasz Konojacki <me@xenu.pl>2022-04-19 16:41:23 +0200
committerxenu <me@xenu.pl>2022-05-29 00:54:10 +0200
commit66673af5955ecc69305b0baad0a8fb6162312409 (patch)
treeff6230ba36209f14b77f4aa92dbaa563a829e2b8 /sv.c
parent471430840e1f4a41f79744508c22d7569e6ed3f8 (diff)
downloadperl-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 'sv.c')
-rw-r--r--sv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index bff92f610d..faea851c98 100644
--- a/sv.c
+++ b/sv.c
@@ -15548,7 +15548,6 @@ perl_clone_using(PerlInterpreter *proto_perl, UV flags,
PL_nomemok = proto_perl->Inomemok;
PL_an = proto_perl->Ian;
PL_evalseq = proto_perl->Ievalseq;
- PL_origenviron = proto_perl->Iorigenviron; /* XXX not quite right */
PL_origalen = proto_perl->Iorigalen;
PL_sighandlerp = proto_perl->Isighandlerp;