projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecfed4a
)
Suppress uninitialized-variable warning.
author
Tom Lane
<tgl@sss.pgh.pa.us>
Wed, 27 Mar 2019 15:10:42 +0000
(11:10 -0400)
committer
Tom 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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/access/heap/heapam.c
b/src/backend/access/heap/heapam.c
index f3812dd5871edabaec3684019287be225f5c8529..de5bb9194e34d5f613fe8a694f29cb9bedd97207 100644
(file)
--- 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];