From: Nicholas Clark Date: Tue, 12 Dec 2006 23:02:56 +0000 (+0000) Subject: In theory Perl_magic_setbm() should clear SvTAIL() too. In practice, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b84d1fce0623cf44de958f99670b6dc90bc40826;p=p5sagit%2Fp5-mst-13.2.git In theory Perl_magic_setbm() should clear SvTAIL() too. In practice, I don't think that it matters as this routine is never actualy called because nothing exposes PVBMs to the world so that the world can assign to them. p4raw-id: //depot/perl@29541 --- diff --git a/mg.c b/mg.c index 450196b..39117e2 100644 --- a/mg.c +++ b/mg.c @@ -2117,6 +2117,7 @@ Perl_magic_setbm(pTHX_ SV *sv, MAGIC *mg) { PERL_UNUSED_ARG(mg); sv_unmagic(sv, PERL_MAGIC_bm); + SvTAIL_off(sv); SvVALID_off(sv); return 0; }