summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-12-12 23:02:56 +0000
committerNicholas Clark <nick@ccl4.org>2006-12-12 23:02:56 +0000
commitb84d1fce0623cf44de958f99670b6dc90bc40826 (patch)
tree07911b86a0311958d51d8be603fbfca61ca620fa /mg.c
parente604303addb604f31bb8957b9148f98f5788a6bf (diff)
downloadperl-b84d1fce0623cf44de958f99670b6dc90bc40826.tar.gz
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
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mg.c b/mg.c
index 450196bfb9..39117e20a4 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;
}