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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user