aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wal.c')
-rw-r--r--src/wal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wal.c b/src/wal.c
index 43bae13e0..7e349a789 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -3710,7 +3710,7 @@ int sqlite3WalFrames(
if( rc ) return rc;
}
}
- assert( (int)pWal->szPage==szPage );
+ if( (int)pWal->szPage!=szPage ) return SQLITE_CORRUPT_BKPT;
/* Setup information needed to write frames into the WAL */
w.pWal = pWal;