aboutsummaryrefslogtreecommitdiff
path: root/src/btree.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-12-13 21:52:18 +0000
committerdrh <drh@noemail.net>2018-12-13 21:52:18 +0000
commit6301c43f236543ecb174e2639a0201bb29580fbe (patch)
tree735cf641e257cd7f5aa623007020cefa6cc4b9fe /src/btree.c
parent8061ad8abd3811c5918d1308e4c8816869509806 (diff)
downloadsqlite-6301c43f236543ecb174e2639a0201bb29580fbe.tar.gz
sqlite-6301c43f236543ecb174e2639a0201bb29580fbe.zip
dbfuzz2 found a NEVER() that is sometimes true.
FossilOrigin-Name: 1201615cbbd3070158ea5fab3d2c8c95f41b25d6da096a44cb9257a7b7405efc
Diffstat (limited to 'src/btree.c')
-rw-r--r--src/btree.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c
index 3409f413b..67a64a91f 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -7039,8 +7039,7 @@ static int balance_quick(MemPage *pParent, MemPage *pPage, u8 *pSpace){
assert( sqlite3PagerIswriteable(pParent->pDbPage) );
assert( pPage->nOverflow==1 );
- /* This error condition is now caught prior to reaching this function */
- if( NEVER(pPage->nCell==0) ) return SQLITE_CORRUPT_BKPT;
+ if( pPage->nCell==0 ) return SQLITE_CORRUPT_BKPT; /* dbfuzz001.test */
/* Allocate a new page. This page will become the right-sibling of
** pPage. Make the parent page writable, so that the new divider cell