Skip to content

Commit 4078da6

Browse files
committed
Silence compiler warning.
Assorted buildfarm members are complaining about "'process_list' may be used uninitialized in this function" since f76892c, 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.
1 parent daa02c6 commit 4078da6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/scripts/reindexdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ reindex_one_database(ConnParams *cparams, ReindexType type,
286286
SimpleStringListCell *cell;
287287
SimpleOidListCell *indices_tables_cell = NULL;
288288
bool parallel = concurrentCons > 1;
289-
SimpleStringList *process_list;
289+
SimpleStringList *process_list = NULL;
290290
SimpleOidList *tableoid_list = NULL;
291291
ReindexType process_type = type;
292292
ParallelSlotArray *sa;

0 commit comments

Comments
 (0)