summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2023-06-06 17:30:53 +0000
committerHeikki Linnakangas2023-06-06 17:32:54 +0000
commit5b0e76dce641377c6488fd8c00f93715427406f5 (patch)
tree1af02b206cbd7e8231d7183a30cd14d96162e5ae
parent02446e058393602a046f681382a478b135b41a31 (diff)
Initialize 'recordXtime' to silence compiler warning.
In reality, recordXtime will always be set by the getRecordTimestamp call, but the compiler doesn't necessarily see that. Back-patch to all supported versions. Author: Tristan Partin Discussion: https://www.postgresql.org/message-id/CT5MN8E11U0M.1NYNCHXYUHY41@gonk
-rw-r--r--src/backend/access/transam/xlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 419ec7d3d86..1174dd5beb8 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -5972,7 +5972,7 @@ recoveryStopsAfter(XLogReaderState *record)
uint8 info;
uint8 xact_info;
uint8 rmid;
- TimestampTz recordXtime;
+ TimestampTz recordXtime = 0;
info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
rmid = XLogRecGetRmid(record);