summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-03-17 22:37:21 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-03-17 22:37:21 +0000
commit4c5e2b0d1b6942d8cf00bbe564b28e490a1b7b83 (patch)
tree5d0389f7884317dc6383cd64a1566fc532e8675a /perl.c
parent24eeb8341646e0edeebdd64b5f20fd4139f252ab (diff)
downloadperl-4c5e2b0d1b6942d8cf00bbe564b28e490a1b7b83.tar.gz
fix coredump when upgrading PL_sv_yes in a second call to
perl_construct() (from Doug MacEachern) p4raw-id: //depot/perl@5789
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index f80ee957bf..578fafc3f1 100644
--- a/perl.c
+++ b/perl.c
@@ -683,12 +683,12 @@ perl_destruct(pTHXx)
SvREFCNT(&PL_sv_yes) = 0;
sv_clear(&PL_sv_yes);
SvANY(&PL_sv_yes) = NULL;
- SvREADONLY_off(&PL_sv_yes);
+ SvFLAGS(&PL_sv_yes) = 0;
SvREFCNT(&PL_sv_no) = 0;
sv_clear(&PL_sv_no);
SvANY(&PL_sv_no) = NULL;
- SvREADONLY_off(&PL_sv_no);
+ SvFLAGS(&PL_sv_no) = 0;
SvREFCNT(&PL_sv_undef) = 0;
SvREADONLY_off(&PL_sv_undef);