diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-17 22:37:21 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-03-17 22:37:21 +0000 |
commit | 4c5e2b0d1b6942d8cf00bbe564b28e490a1b7b83 (patch) | |
tree | 5d0389f7884317dc6383cd64a1566fc532e8675a /perl.c | |
parent | 24eeb8341646e0edeebdd64b5f20fd4139f252ab (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |