mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Add NEVER() macros on branches that become unreachable due to the
previous check-in. FossilOrigin-Name: 5fa272cc033216ed2d3b16078db58accf4d9a3d10e6dd64d362ef844b3e267b6
This commit is contained in:
@@ -6359,7 +6359,7 @@ static int freePage2(BtShared *pBt, MemPage *pMemPage, Pgno iPage){
|
||||
assert( CORRUPT_DB || iPage>1 );
|
||||
assert( !pMemPage || pMemPage->pgno==iPage );
|
||||
|
||||
if( iPage<2 || iPage>pBt->nPage ){
|
||||
if( NEVER(iPage<2) || iPage>pBt->nPage ){
|
||||
return SQLITE_CORRUPT_BKPT;
|
||||
}
|
||||
if( pMemPage ){
|
||||
@@ -9662,7 +9662,7 @@ static int btreeDropTable(Btree *p, Pgno iTable, int *piMoved){
|
||||
rc = sqlite3BtreeClearTable(p, iTable, 0);
|
||||
if( rc ) return rc;
|
||||
rc = btreeGetPage(pBt, (Pgno)iTable, &pPage, 0);
|
||||
if( rc ){
|
||||
if( NEVER(rc) ){
|
||||
releasePage(pPage);
|
||||
return rc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user