diff options
author | David Mitchell <davem@iabyn.com> | 2022-12-02 14:44:12 +0000 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-02-28 20:53:51 +0800 |
commit | dc75098eb38395f6cae58f6e36aacc05d6374c73 (patch) | |
tree | 0aaf4bfbd799e8726b3f7d190b6c55a73b9bfe79 /pp_sort.c | |
parent | 43442f48654ecf2a2d0ee079c3c24250dbc6db42 (diff) | |
download | perl-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); } } |