]> granicus.if.org Git - postgresql/commitdiff
Suppress uninitialized-variable warning.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Mar 2019 15:10:42 +0000 (11:10 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Mar 2019 15:10:42 +0000 (11:10 -0400)
Apparently Andres' compiler is smart enough to see that hpage
must be initialized before use ... but mine isn't.

src/backend/access/heap/heapam.c

index f3812dd5871edabaec3684019287be225f5c8529..de5bb9194e34d5f613fe8a694f29cb9bedd97207 100644 (file)
@@ -6986,6 +6986,7 @@ heap_compute_xid_horizon_for_tuples(Relation rel,
 
        /* Iterate over all tids, and check their horizon */
        hblkno = InvalidBlockNumber;
+       hpage = NULL;
        for (int i = 0; i < nitems; i++)
        {
                ItemPointer htid = &tids[i];