aboutsummaryrefslogtreecommitdiff
path: root/src/pager.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-10-14 21:49:18 +0000
committerdrh <drh@noemail.net>2011-10-14 21:49:18 +0000
commitb07028f71cd96b48a81474c6f1eea9596eb41cc7 (patch)
tree79e9ce2fc70ef9318d48c388431caf117fbdf001 /src/pager.c
parent0edb7acd3c2dcd913e5cecce8475aed8ff0850bf (diff)
downloadsqlite-b07028f71cd96b48a81474c6f1eea9596eb41cc7.tar.gz
sqlite-b07028f71cd96b48a81474c6f1eea9596eb41cc7.zip
Add assert() statements and eliminate needless variable assignments in order
to get the clang scan-build utility to report zero problems against the SQLite core. Clang's static analysis did find one real problem - but it was in the command-line shell, not in the SQLite core. FossilOrigin-Name: 60fee9574b0125705787e33c16f116cf188c8323
Diffstat (limited to 'src/pager.c')
-rw-r--r--src/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pager.c b/src/pager.c
index 99a3ebd4c..421a7094f 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -2703,7 +2703,6 @@ static int pager_playback(Pager *pPager, int isHot){
rc = pager_playback_one_page(pPager,&pPager->journalOff,0,1,0);
if( rc!=SQLITE_OK ){
if( rc==SQLITE_DONE ){
- rc = SQLITE_OK;
pPager->journalOff = szJ;
break;
}else if( rc==SQLITE_IOERR_SHORT_READ ){
@@ -2965,6 +2964,7 @@ static int pagerWalFrames(
#endif
assert( pPager->pWal );
+ assert( pList );
#ifdef SQLITE_DEBUG
/* Verify that the page list is in accending order */
for(p=pList; p && p->pDirty; p=p->pDirty){