summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2002-05-02 15:44:48 +0000
committerGurusamy Sarathy <gsar@cpan.org>2002-05-02 15:44:48 +0000
commit4efc5df63c21e7be3ddafb142377fe2511926c04 (patch)
treeab27aa859fec026d0dcbf95d8dd5ab4a03f08f06 /sv.c
parent2fc614e01c5e692def72089696c0a1da4f6f3833 (diff)
downloadperl-4efc5df63c21e7be3ddafb142377fe2511926c04.tar.gz
manual integrate of change#16332 from maint-5.6 branch
p4raw-link: @16332 on //depot/maint-5.6/perl: 9bf7742e23b67e3d7c671615795c570c51951513 p4raw-id: //depot/perl@16348
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 0350bae010..9ba91e6728 100644
--- a/sv.c
+++ b/sv.c
@@ -6594,8 +6594,14 @@ Perl_sv_reset(pTHX_ register char *s, HV *stash)
if (GvHV(gv) && !HvNAME(GvHV(gv))) {
hv_clear(GvHV(gv));
#ifdef USE_ENVIRON_ARRAY
- if (gv == PL_envgv)
+ if (gv == PL_envgv
+# ifdef USE_ITHREADS
+ && PL_curinterp == aTHX
+# endif
+ )
+ {
environ[0] = Nullch;
+ }
#endif
}
}