aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-03-27 11:10:42 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2019-03-27 11:10:42 -0400
commita51cc7e9e60701d31032669011adcda8b4621d93 (patch)
treed36d972264b44365b45bdfd1ad143e585de51d85
parentecfed4a12247cf4659eee6b6ea27405e35fe57f8 (diff)
downloadpostgresql-a51cc7e9e60701d31032669011adcda8b4621d93.tar.gz
postgresql-a51cc7e9e60701d31032669011adcda8b4621d93.zip
Suppress uninitialized-variable warning.
Apparently Andres' compiler is smart enough to see that hpage must be initialized before use ... but mine isn't.
-rw-r--r--src/backend/access/heap/heapam.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index f3812dd5871..de5bb9194e3 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];