aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2023-06-06 20:30:53 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2023-06-06 20:32:31 +0300
commit8b8cd437b500d160d379ffdc9aa2c1c29a265a86 (patch)
tree1ff2ce36096bba5a4b86cc1a78043d6399240ebf
parent9b1e89c6690d3e90dc118fee9d712f55f85bb46e (diff)
downloadpostgresql-8b8cd437b500d160d379ffdc9aa2c1c29a265a86.tar.gz
postgresql-8b8cd437b500d160d379ffdc9aa2c1c29a265a86.zip
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 a1ceded9e09..9c5d6058b46 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -5891,7 +5891,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