summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorRichard Leach <richardleach@users.noreply.github.com>2021-05-13 10:17:52 +0100
committerHugo van der Sanden <hv@crypt.org>2021-05-26 13:44:48 +0100
commit97b09acf9d2e9385b839364d63dd8ed045bd7d3a (patch)
tree16ad5fcd47c8c1ba7dce1ac8f6e56b5c69c0ca8d /pp_hot.c
parentd2a9e960038ce8485fc1eb7b94297c9e5b0a4033 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index f89dea12fd..642e3f0d42 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -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);