summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorAdrian M. Enache <enache@rdslink.ro>2003-12-20 21:32:37 +0000
committerEnache Adrian <enache@rdslink.ro>2003-12-20 21:32:37 +0000
commitfdc9a8133c4fc01dd144b5bec5fdcd27115b9782 (patch)
tree9e5b35dd36ad18fb5b0946381e44a0d662edf669 /mg.c
parent823a69961924ac9218a5eb5cbdeedc3389c85b19 (diff)
downloadperl-fdc9a8133c4fc01dd144b5bec5fdcd27115b9782.tar.gz
fix [perl #24660], [perl #24663].
p4raw-id: //depot/perl@21936
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mg.c b/mg.c
index d98a6d5d77..66e02b7a4c 100644
--- a/mg.c
+++ b/mg.c
@@ -1927,14 +1927,14 @@ Perl_magic_killbackrefs(pTHX_ SV *sv, MAGIC *mg)
SV **svp = AvARRAY(av);
I32 i = AvFILLp(av);
while (i >= 0) {
- if (svp[i] && svp[i] != &PL_sv_undef) {
+ if (svp[i]) {
if (!SvWEAKREF(svp[i]))
Perl_croak(aTHX_ "panic: magic_killbackrefs");
/* XXX Should we check that it hasn't changed? */
SvRV(svp[i]) = 0;
(void)SvOK_off(svp[i]);
SvWEAKREF_off(svp[i]);
- svp[i] = &PL_sv_undef;
+ svp[i] = Nullsv;
}
i--;
}