1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2024-11-24 08:52:38 +02:00

[PBCKP-98] initialize result variable in get_next_record_lsn

This commit is contained in:
Grigory Smolkin 2020-05-31 22:56:02 +03:00
parent 122f88ba56
commit 5699b13756

View File

@ -691,7 +691,8 @@ get_next_record_lsn(const char *archivedir, XLogSegNo segno,
{
XLogReaderState *xlogreader;
XLogReaderData reader_data;
XLogRecPtr startpoint, found, res;
XLogRecPtr startpoint, found;
XLogRecPtr res = InvalidXLogRecPtr;
char wal_segment[MAXFNAMELEN];
int attempts = 0;