pgsql: Avoid shadowing a variable in sync.c.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid shadowing a variable in sync.c.
Date: 2022-07-14 12:11:00
Message-ID: E1oBxgJ-0008Et-Et@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid shadowing a variable in sync.c.

It was confusing to reuse the variable name 'entry' in two scopes.
Use distinct variable names.

Reported-by: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Reported-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Reported-by: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAEudQArDrFyQ15Am3rgWBunGBVZFDb90onTS8SRiFAWHeiLiFA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/57944910585750b52173a0f67c9e0e42639f1c0a

Modified Files
--------------
src/backend/storage/sync/sync.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2022-07-14 13:04:33 pgsql: Tighten up parsing logic in gen_node_support.pl.
Previous Message Thomas Munro 2022-07-14 12:02:15 pgsql: Block signals while allocating DSM memory.