Skip to content

Commit 5699b13

Browse files
committed
[PBCKP-98] initialize result variable in get_next_record_lsn
1 parent 122f88b commit 5699b13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parsexlog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,8 @@ get_next_record_lsn(const char *archivedir, XLogSegNo segno,
691691
{
692692
XLogReaderState *xlogreader;
693693
XLogReaderData reader_data;
694-
XLogRecPtr startpoint, found, res;
694+
XLogRecPtr startpoint, found;
695+
XLogRecPtr res = InvalidXLogRecPtr;
695696
char wal_segment[MAXFNAMELEN];
696697
int attempts = 0;
697698

0 commit comments

Comments
 (0)