aboutsummaryrefslogtreecommitdiff
path: root/src/pcache1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcache1.c')
-rw-r--r--src/pcache1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcache1.c b/src/pcache1.c
index 1beb66d73..00a0205f5 100644
--- a/src/pcache1.c
+++ b/src/pcache1.c
@@ -1223,7 +1223,7 @@ void sqlite3PcacheStats(
){
PgHdr1 *p;
int nRecyclable = 0;
- for(p=pcache1.grp.lru.pLruNext; !p->isAnchor; p=p->pLruNext){
+ for(p=pcache1.grp.lru.pLruNext; p && !p->isAnchor; p=p->pLruNext){
assert( p->isPinned==0 );
nRecyclable++;
}