diff options
author | Richard Leach <richardleach@users.noreply.github.com> | 2021-05-13 10:17:52 +0100 |
---|---|---|
committer | Hugo van der Sanden <hv@crypt.org> | 2021-05-26 13:44:48 +0100 |
commit | 97b09acf9d2e9385b839364d63dd8ed045bd7d3a (patch) | |
tree | 16ad5fcd47c8c1ba7dce1ac8f6e56b5c69c0ca8d /pp_hot.c | |
parent | d2a9e960038ce8485fc1eb7b94297c9e5b0a4033 (diff) | |
download | perl-97b09acf9d2e9385b839364d63dd8ed045bd7d3a.tar.gz |
Perl_clear_defarray - array does not actually need Zeroing
AvREIFY_only() is about to be applied
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |