]> granicus.if.org Git - postgresql/commitdiff
Silence compiler warnings in tbm_prepare_shared_iterate().
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Mar 2017 15:39:40 +0000 (10:39 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Mar 2017 15:39:40 +0000 (10:39 -0500)
Maybe Robert's compiler can convince itself that these variables are
never used uninitialized, but mine can't.

src/backend/nodes/tidbitmap.c

index 9dcef327043958fd181672636e89b6de8e982131..44cc9daa03f25d1d2de8e06013e8165d5d832acb 100644 (file)
@@ -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);