summaryrefslogtreecommitdiff
path: root/pp_sort.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2022-12-02 14:44:12 +0000
committerYves Orton <demerphq@gmail.com>2023-02-28 20:53:51 +0800
commitdc75098eb38395f6cae58f6e36aacc05d6374c73 (patch)
tree0aaf4bfbd799e8726b3f7d190b6c55a73b9bfe79 /pp_sort.c
parent43442f48654ecf2a2d0ee079c3c24250dbc6db42 (diff)
downloadperl-dc75098eb38395f6cae58f6e36aacc05d6374c73.tar.gz
pp_sort(): rename a duplicated variable
'av' is in scope both for the whole function, and for a small block within that function. Rename the inner variable to av0 to avoid confusion.
Diffstat (limited to 'pp_sort.c')
-rw-r--r--pp_sort.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_sort.c b/pp_sort.c
index 7753197a76..20919f6c07 100644
--- a/pp_sort.c
+++ b/pp_sort.c
@@ -906,10 +906,10 @@ PP(pp_sort)
if (hasargs) {
/* This is mostly copied from pp_entersub */
- AV * const av = MUTABLE_AV(PAD_SVl(0));
+ AV * const av0 = MUTABLE_AV(PAD_SVl(0));
cx->blk_sub.savearray = GvAV(PL_defgv);
- GvAV(PL_defgv) = MUTABLE_AV(SvREFCNT_inc_simple(av));
+ GvAV(PL_defgv) = MUTABLE_AV(SvREFCNT_inc_simple(av0));
}
}