1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Fix a failing assert() in balance_nonroot().

FossilOrigin-Name: e2e323145f66cca31babe1a979db6ef97038b879
This commit is contained in:
dan
2014-12-24 18:11:50 +00:00
parent 8038953c15
commit ee7172f12a
3 changed files with 9 additions and 9 deletions

View File

@@ -6865,8 +6865,8 @@ static int balance_nonroot(
/* Do not allow any cells smaller than 4 bytes. If a smaller cell
** does exist, pad it with 0x00 bytes. */
assert( szCell[nCell]==3 );
assert( apCell[nCell]==&pTemp[iSpace1-3] );
pTemp[iSpace1++] = 0x00;
assert( apCell[nCell]==&aSpace1[iSpace1-3] );
aSpace1[iSpace1++] = 0x00;
szCell[nCell] = 4;
}
}