diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-11-14 22:31:14 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-11-14 22:31:14 +0000 |
commit | 0565a181ab920bd3cc76f2ab45d62768abfcaf8d (patch) | |
tree | 3bef6b0b82a543d722fd1ad8d544c18184053a02 /av.c | |
parent | 80002e0d612c016105daaa578514ef1b726842f4 (diff) | |
download | perl-0565a181ab920bd3cc76f2ab45d62768abfcaf8d.tar.gz |
Mark all places where perl needs to look at a possibly-freed scalar
with a macro SvIS_FREED(sv)
p4raw-id: //depot/perl@26132
Diffstat (limited to 'av.c')
-rw-r--r-- | av.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -244,7 +244,7 @@ Perl_av_fetch(pTHX_ register AV *av, I32 key, I32 lval) } else if (AvREIFY(av) && (!AvARRAY(av)[key] /* eg. @_ could have freed elts */ - || SvTYPE(AvARRAY(av)[key]) == SVTYPEMASK)) { + || SvIS_FREED(AvARRAY(av)[key]))) { AvARRAY(av)[key] = &PL_sv_undef; /* 1/2 reify */ goto emptyness; } |