Index: src/btree.c ================================================================== --- src/btree.c +++ src/btree.c @@ -3428,11 +3428,11 @@ /* Even if there was no transaction opened when this function was ** called, a race condition may cause an SQLITE_BUSY_SNAPSHOT error ** in wal mode (since the code above opens a read-transaction and then ** upgrades it to a write-transaction - it does not take the write lock ** atomically). In this case change the error code to SQLITE_BUSY. */ - assert( wrFlag ); + assert( wrflag ); rc = SQLITE_BUSY; } trans_begun: