pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: reindexdb: Fix warning about uninitialized indices_tables_cell
Date: Mon, 25 Mar 2024 09:40:32 +0000
Message-ID: <E1rogoi-005Xva-G3@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1rogoi-005Xva-G3@gemulon.postgresql.org>
Permalink:  ../E1rogoi-005Xva-G3@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rogoi-005Xva-G3@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: reindexdb: Fix warning about uninitialized indices_tables_cell
  In-Reply-To: <E1rogoi-005Xva-G3@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox