From: Gurusamy Sarathy Date: Fri, 17 Mar 2000 22:37:21 +0000 (+0000) Subject: fix coredump when upgrading PL_sv_yes in a second call to X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4c5e2b0d1b6942d8cf00bbe564b28e490a1b7b83;p=p5sagit%2Fp5-mst-13.2.git fix coredump when upgrading PL_sv_yes in a second call to perl_construct() (from Doug MacEachern) p4raw-id: //depot/perl@5789 --- diff --git a/perl.c b/perl.c index f80ee95..578fafc 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);