diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2002-05-02 15:44:48 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2002-05-02 15:44:48 +0000 |
commit | 4efc5df63c21e7be3ddafb142377fe2511926c04 (patch) | |
tree | ab27aa859fec026d0dcbf95d8dd5ab4a03f08f06 /sv.c | |
parent | 2fc614e01c5e692def72089696c0a1da4f6f3833 (diff) | |
download | perl-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 } } |