summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2023-06-06 17:30:53 +0000
committerHeikki Linnakangas2023-06-06 17:30:53 +0000
commit95f0340c3bc745aee3aa90847efd2007e40236e9 (patch)
tree8cc674dbc0e06d455db3f3fe9a7739526fa9a27c
parent3f1aaaa180689f2015e7f7bd01c9be6d7a993b42 (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/xlogrecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c
index 4883fcb512b..becc2bda62e 100644
--- a/src/backend/access/transam/xlogrecovery.c
+++ b/src/backend/access/transam/xlogrecovery.c
@@ -2644,7 +2644,7 @@ recoveryStopsAfter(XLogReaderState *record)
uint8 info;
uint8 xact_info;
uint8 rmid;
- TimestampTz recordXtime;
+ TimestampTz recordXtime = 0;
/*
* Ignore recovery target settings when not in archive recovery (meaning