diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-18 10:54:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2025-03-18 10:54:10 -0400 |
commit | 4078da6c478039bbafdd58138957dc47db545935 (patch) | |
tree | 4b78740f5e9347fa57192a23d31e1701a3279b25 | |
parent | daa02c6bd9262adeb44f4a9ed9d94fa6259afd94 (diff) | |
download | postgresql-4078da6c478039bbafdd58138957dc47db545935.tar.gz postgresql-4078da6c478039bbafdd58138957dc47db545935.zip |
Silence compiler warning.
Assorted buildfarm members are complaining about "'process_list' may
be used uninitialized in this function" since f76892c9f, presumably
because they don't trust that the switch case labels are exhaustive.
We can silence that by initializing the variable to NULL. Should
a switch fall-through actually happen, we'll get SIGSEGV at the
first use, which is as good as an Assert.
-rw-r--r-- | src/bin/scripts/reindexdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/scripts/reindexdb.c b/src/bin/scripts/reindexdb.c index 7f0fc6344e9..860a0fcb46b 100644 --- a/src/bin/scripts/reindexdb.c +++ b/src/bin/scripts/reindexdb.c @@ -286,7 +286,7 @@ reindex_one_database(ConnParams *cparams, ReindexType type, SimpleStringListCell *cell; SimpleOidListCell *indices_tables_cell = NULL; bool parallel = concurrentCons > 1; - SimpleStringList *process_list; + SimpleStringList *process_list = NULL; SimpleOidList *tableoid_list = NULL; ReindexType process_type = type; ParallelSlotArray *sa; |