Skip to content

Commit

Permalink
Perl_clear_defarray - array does not actually need Zeroing
Browse files Browse the repository at this point in the history
AvREIFY_only() is about to be applied
  • Loading branch information
richardleach authored and hvds committed May 26, 2021
1 parent d2a9e96 commit 97b09ac
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;
/* 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 97b09ac

Please sign in to comment.