pgsql: reindexdb: Fix warning about uninitialized indices_tables_cell

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: reindexdb: Fix warning about uninitialized indices_tables_cell
Date: 2024-03-25 09:40:32
Message-ID: E1rogoi-005Xva-G3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

reindexdb: Fix warning about uninitialized indices_tables_cell

Initialize indices_tables_cell with NULL to silence the warning. Also,
refactor the place of the first assignment of indices_tables_cell.

Reported-by: Thomas Munro, David Rowley, Tom Lane, Richard Guo
Discussion: https://postgr.es/m/2348025.1711332418%40sss.pgh.pa.us
Discussion: https://postgr.es/m/E1roXs4-005UdX-1V%40gemulon.postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cc0e7ebd304a24815c0531000a4c3693878cd96c

Modified Files
--------------
src/bin/scripts/reindexdb.c | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Langote 2024-03-25 10:22:09 Re: pgsql: Do not translate dummy SpecialJoinInfos for child joins
Previous Message Amit Langote 2024-03-25 09:07:57 pgsql: Do not translate dummy SpecialJoinInfos for child joins