diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pager.c | 5 | ||||
-rw-r--r-- | src/wal.c | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pager.c b/src/pager.c index f779d7457..37588f0b2 100644 --- a/src/pager.c +++ b/src/pager.c @@ -818,9 +818,8 @@ int sqlite3PagerDirectReadOk(Pager *pPager, Pgno pgno){ #ifndef SQLITE_OMIT_WAL if( pPager->pWal ){ u32 iRead = 0; - int rc; - rc = sqlite3WalFindFrame(pPager->pWal, pgno, &iRead); - return (rc==SQLITE_OK && iRead==0); + (void)sqlite3WalFindFrame(pPager->pWal, pgno, &iRead); + return iRead==0; } #endif return 1; @@ -3505,6 +3505,7 @@ static int walFindFrame( iRead = iFrame; } if( (nCollide--)==0 ){ + *piRead = 0; return SQLITE_CORRUPT_BKPT; } iKey = walNextHash(iKey); |