1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Ensure that the sqlite3BtreeLast() interface initializes the *pRes return

to zero if the cursor is already sitting on the last entry of the table.

FossilOrigin-Name: ebe4845cd0ffb96b30be3c69eb399d58e93149886bc2fa60a7ebd7b4fbe447a4
This commit is contained in:
drh
2019-05-08 23:55:04 +00:00
parent 6f7f5d95f8
commit eb265343a9
3 changed files with 8 additions and 7 deletions

View File

@@ -5294,6 +5294,7 @@ int sqlite3BtreeLast(BtCursor *pCur, int *pRes){
assert( pCur->ix==pCur->pPage->nCell-1 );
assert( pCur->pPage->leaf );
#endif
*pRes = 0;
return SQLITE_OK;
}