Skip to content
Snippets Groups Projects
Commit 14570c28 authored by Andres Freund's avatar Andres Freund
Browse files

Remove superflous variable from xlogreader's XLogFindNextRecord().

Pointed out by Coverity.

Since this is mere, and debatable, cosmetics I'm not backpatching
this.
parent 58bc4747
No related branches found
No related tags found
No related merge requests found
...@@ -833,7 +833,6 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr) ...@@ -833,7 +833,6 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
XLogRecPtr found = InvalidXLogRecPtr; XLogRecPtr found = InvalidXLogRecPtr;
uint32 pageHeaderSize; uint32 pageHeaderSize;
XLogPageHeader header; XLogPageHeader header;
XLogRecord *record;
int readLen; int readLen;
char *errormsg; char *errormsg;
...@@ -875,7 +874,7 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr) ...@@ -875,7 +874,7 @@ XLogFindNextRecord(XLogReaderState *state, XLogRecPtr RecPtr)
* because either we're at the first record after the beginning of a page * because either we're at the first record after the beginning of a page
* or we just jumped over the remaining data of a continuation. * or we just jumped over the remaining data of a continuation.
*/ */
while ((record = XLogReadRecord(state, tmpRecPtr, &errormsg))) while (XLogReadRecord(state, tmpRecPtr, &errormsg) != NULL)
{ {
/* continue after the record */ /* continue after the record */
tmpRecPtr = InvalidXLogRecPtr; tmpRecPtr = InvalidXLogRecPtr;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment