From: Tom Lane Date: Wed, 8 Mar 2017 15:39:40 +0000 (-0500) Subject: Silence compiler warnings in tbm_prepare_shared_iterate(). X-Git-Tag: REL_10_BETA1~732 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=270d7dd8a5a7128fc2b859f3bf95e2c1fb45be79;p=postgresql 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. --- diff --git a/src/backend/nodes/tidbitmap.c b/src/backend/nodes/tidbitmap.c index 9dcef32704..44cc9daa03 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);