postgres.git / summary / log / commit / refs
commit 270d7dd8a5a7128fc2b859f3bf95e2c1fb45be79
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Wed Mar 08 15:39:40 2017 +0000
Silence compiler warnings in tbm_prepare_shared_iterate().
Maybe Robert's compiler can convince itself that these variables are
never used uninitialized, but mine can't.
src/backend/nodes/tidbitmap.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/nodes/tidbitmap.c b/src/backend/nodes/tidbitmap.c
index 9dcef327043..44cc9daa03f 100644
--- a/src/backend/nodes/tidbitmap.c
+++ b/src/backend/nodes/tidbitmap.c
@@ -787,8 +787,8 @@ tbm_prepare_shared_iterate(TIDBitmap *tbm)
dsa_pointer dp;
TBMSharedIteratorState *istate;
PTEntryArray *ptbase;
- PTIterationArray *ptpages;
- PTIterationArray *ptchunks;
+ PTIterationArray *ptpages = NULL;
+ PTIterationArray *ptchunks = NULL;
Assert(tbm->dsa != NULL);
Assert(tbm->iterating != TBM_ITERATING_PRIVATE);
[parent: 911244610cd0]