From: Tom Lane Date: Wed, 27 Mar 2019 15:10:42 +0000 (-0400) Subject: Suppress uninitialized-variable warning. X-Git-Tag: REL_12_BETA1~399 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a51cc7e9e60701d31032669011adcda8b4621d93;p=postgresql Suppress uninitialized-variable warning. Apparently Andres' compiler is smart enough to see that hpage must be initialized before use ... but mine isn't. --- diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index f3812dd587..de5bb9194e 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -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];