8000 Initialize 'recordXtime' to silence compiler warning. · postgres/postgres@5b0e76d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5b0e76d

Browse files
committed
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
1 parent 02446e0 commit 5b0e76d

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5972,7 +5972,7 @@ recoveryStopsAfter(XLogReaderState *record)
59725972
uint8 info;
59735973
uint8 xact_info;
59745974
uint8 rmid;
5975-
TimestampTz recordXtime;
5975+
TimestampTz recordXtime = 0;
59765976

59775977
info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
59785978
rmid = XLogRecGetRmid(record);

0 commit comments

Comments
 (0)
0