1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Add an assert() to demonstrate that Klockworks is wrong about an aleged bug. (CVS 3129)

FossilOrigin-Name: 0910022be3ec8ce540e0e6adce2eed7a7cd28fd3
This commit is contained in:
drh
2006-03-11 12:04:18 +00:00
parent 643054c18b
commit ff3b170023
3 changed files with 9 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
** May you share freely, never taking more than you give.
**
*************************************************************************
** $Id: btree.c,v 1.317 2006/03/06 20:55:46 drh Exp $
** $Id: btree.c,v 1.318 2006/03/11 12:04:18 drh Exp $
**
** This file implements a external (disk-based) database using BTrees.
** For a detailed discussion of BTrees, refer to
@@ -4069,6 +4069,7 @@ static int fillInCell(
n = nPayload;
if( n>spaceLeft ) n = spaceLeft;
if( n>nSrc ) n = nSrc;
assert( pSrc );
memcpy(pPayload, pSrc, n);
nPayload -= n;
pPayload += n;