1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Remove an unreachable branch in the error handling logic for

sqlite3BtreePayloadChecked().

FossilOrigin-Name: 293bf3ed7e40745349c83b202b27ed1b48517e1a
This commit is contained in:
drh
2017-01-26 21:30:00 +00:00
parent b7dab70a92
commit 945b094632
3 changed files with 8 additions and 8 deletions

View File

@@ -4683,7 +4683,7 @@ static SQLITE_NOINLINE int accessPayloadChecked(
return SQLITE_ABORT;
}
assert( cursorOwnsBtShared(pCur) );
rc = restoreCursorPosition(pCur);
rc = btreeRestoreCursorPosition(pCur);
return rc ? rc : accessPayload(pCur, offset, amt, pBuf, 0);
}
int sqlite3BtreePayloadChecked(BtCursor *pCur, u32 offset, u32 amt, void *pBuf){