diff options
author | Adrian M. Enache <enache@rdslink.ro> | 2003-12-20 21:32:37 +0000 |
---|---|---|
committer | Enache Adrian <enache@rdslink.ro> | 2003-12-20 21:32:37 +0000 |
commit | fdc9a8133c4fc01dd144b5bec5fdcd27115b9782 (patch) | |
tree | 9e5b35dd36ad18fb5b0946381e44a0d662edf669 /mg.c | |
parent | 823a69961924ac9218a5eb5cbdeedc3389c85b19 (diff) | |
download | perl-fdc9a8133c4fc01dd144b5bec5fdcd27115b9782.tar.gz |
fix [perl #24660], [perl #24663].
p4raw-id: //depot/perl@21936
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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--; } |