diff options
author | drh <drh@noemail.net> | 2011-10-12 17:00:28 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-10-12 17:00:28 +0000 |
commit | 8a575d9aa9b8da6c375c069a026236ddbb33fa8d (patch) | |
tree | 478854cdcb430625e4c920cd256075158200f63a /src/btree.c | |
parent | f0693c8928161e7db8426e0e6d07de28b7e9b0ff (diff) | |
download | sqlite-8a575d9aa9b8da6c375c069a026236ddbb33fa8d.tar.gz sqlite-8a575d9aa9b8da6c375c069a026236ddbb33fa8d.zip |
Clarify a comment and fix a code formatting issue in btree.c.
FossilOrigin-Name: 4f1a558d0013fbf3fe00bdf5883e61a1f3779831
Diffstat (limited to 'src/btree.c')
-rw-r--r-- | src/btree.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index 72d61cc26..f1a67cab9 100644 --- a/src/btree.c +++ b/src/btree.c @@ -5995,13 +5995,15 @@ static int balance_nonroot( ** four bytes of the divider cell. So the pointer is safe to use ** later on. ** - ** Unless SQLite is compiled in secure-delete mode. In this case, + ** But not if we are in secure-delete mode. In secure-delete mode, ** the dropCell() routine will overwrite the entire cell with zeroes. ** In this case, temporarily copy the cell into the aOvflSpace[] ** buffer. It will be copied out again as soon as the aSpace[] buffer ** is allocated. */ if( pBt->secureDelete ){ - int iOff = SQLITE_PTR_TO_INT(apDiv[i]) - SQLITE_PTR_TO_INT(pParent->aData); + int iOff; + + iOff = SQLITE_PTR_TO_INT(apDiv[i]) - SQLITE_PTR_TO_INT(pParent->aData); if( (iOff+szNew[i])>(int)pBt->usableSize ){ rc = SQLITE_CORRUPT_BKPT; memset(apOld, 0, (i+1)*sizeof(MemPage*)); |