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

Move an assert() and testcase() into their correct position within

getAndInitPage().

FossilOrigin-Name: 18115164e12509ec21f34598089a7f1310048819
This commit is contained in:
drh
2015-06-29 00:52:33 +00:00
parent 95c91e145a
commit 325d087aa7
3 changed files with 9 additions and 10 deletions

View File

@@ -1961,13 +1961,12 @@ static int getAndInitPage(
releasePage(*ppPage);
goto getAndInitPage_error;
}
testcase( pgno==0 );
assert( pgno!=0 || rc==SQLITE_CORRUPT );
return SQLITE_OK;
getAndInitPage_error:
if( pCur ) pCur->iPage--;
testcase( pgno==0 );
assert( pgno!=0 || rc==SQLITE_CORRUPT );
return rc;
}