diff options
author | drh <> | 2021-10-04 13:18:44 +0000 |
---|---|---|
committer | drh <> | 2021-10-04 13:18:44 +0000 |
commit | aa6fe5bf1005f27a82f23d5a21afe83da1428ff1 (patch) | |
tree | c0521949c369732fb32f521890b1b6471a272d5d /ext/misc/json1.c | |
parent | 36db90d3dd62602ec80d1b07612d55343e8a310a (diff) | |
download | sqlite-aa6fe5bf1005f27a82f23d5a21afe83da1428ff1.tar.gz sqlite-aa6fe5bf1005f27a82f23d5a21afe83da1428ff1.zip |
Fix harmless static analyzer warnings.
FossilOrigin-Name: 6604a085964121113e7b7f57537a0ba64ba058d0eb12bf0a3aeb6d1b7a29d516
Diffstat (limited to 'ext/misc/json1.c')
-rw-r--r-- | ext/misc/json1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/misc/json1.c b/ext/misc/json1.c index 6fe3ab967..5b8a0a05c 100644 --- a/ext/misc/json1.c +++ b/ext/misc/json1.c @@ -759,7 +759,7 @@ static int jsonParseAddNode( const char *zContent /* Content */ ){ JsonNode *p; - if( pParse->nNode>=pParse->nAlloc ){ + if( pParse->aNode==0 || pParse->nNode>=pParse->nAlloc ){ return jsonParseAddNodeExpand(pParse, eType, n, zContent); } p = &pParse->aNode[pParse->nNode]; |