Skip to content

Commit

Permalink
Perl_clear_defarray - AvREIFY_only() applied, array does not actually…
Browse files Browse the repository at this point in the history
… need Zeroing
  • Loading branch information
richardleach committed May 13, 2021
1 parent 6c77e12 commit 36b5078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pp_hot.c
Expand Up @@ -4975,7 +4975,7 @@ Perl_clear_defarray(pTHX_ AV* av, bool abandon)
else {
const SSize_t size = AvFILLp(av) + 1;
/* fill can be -1. The ternary gives consistency with av_extend() */
AV *newav = newAV_alloc_xz(size < 4 ? 4 : size);
AV *newav = newAV_alloc_x(size < 4 ? 4 : size);
AvREIFY_only(newav);
PAD_SVl(0) = MUTABLE_SV(newav);
SvREFCNT_dec_NN(av);
Expand Down

0 comments on commit 36b5078

Please sign in to comment.