reindexdb: Fix warning about uninitialized indices_tables_cell
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 25 Mar 2024 09:35:30 +0000 (11:35 +0200)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 25 Mar 2024 09:40:25 +0000 (11:40 +0200)
commitcc0e7ebd304a24815c0531000a4c3693878cd96c
tree0c237891e16c8229ab9735034df7efc071dfb67a
parent6190d828cd25ae20c0a8548765a0e1b880f1f66d
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
src/bin/scripts/reindexdb.c