mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-09 14:21:03 +03:00
Fix harmless scan-build warnings.
FossilOrigin-Name: 65a8716d8a1b7c5cffe9cdd25e4cbfa6528fcb146ff0fe67b0ce771b0537473d
This commit is contained in:
@@ -1101,7 +1101,9 @@ static int jsonParseAddNode(
|
||||
if( pParse->nNode>=pParse->nAlloc ){
|
||||
return jsonParseAddNodeExpand(pParse, eType, n, zContent);
|
||||
}
|
||||
assert( pParse->aNode!=0 );
|
||||
p = &pParse->aNode[pParse->nNode];
|
||||
assert( p!=0 );
|
||||
p->eType = (u8)(eType & 0xff);
|
||||
p->jnFlags = (u8)(eType >> 8);
|
||||
VVA( p->eU = zContent ? 1 : 0 );
|
||||
@@ -1121,6 +1123,8 @@ static void jsonParseAddNodeArray(
|
||||
JsonNode *aNode, /* Array of nodes to add */
|
||||
u32 nNode /* Number of elements in aNew */
|
||||
){
|
||||
assert( aNode!=0 );
|
||||
assert( nNode>=1 );
|
||||
if( pParse->nNode + nNode > pParse->nAlloc ){
|
||||
u32 nNew = pParse->nNode + nNode;
|
||||
JsonNode *aNew = sqlite3_realloc64(pParse->aNode, nNew*sizeof(JsonNode));
|
||||
|
||||
Reference in New Issue
Block a user