diff options
author | drh <> | 2023-10-05 20:17:01 +0000 |
---|---|---|
committer | drh <> | 2023-10-05 20:17:01 +0000 |
commit | dac27071526c6e0b54827713f8b8c2cee413a9c0 (patch) | |
tree | 075558a0422e334b3a6711328ad13986ea27ddbc /src/json.c | |
parent | 51d507d432c60e241ad3684a50e0d9a74283303b (diff) | |
download | sqlite-dac27071526c6e0b54827713f8b8c2cee413a9c0.tar.gz sqlite-dac27071526c6e0b54827713f8b8c2cee413a9c0.zip |
Turn an unreachable branch into an assert().
FossilOrigin-Name: 0f75199160e48fa8c44f986f1af777adf19e40fbd114a6f58e24d5e6dede779d
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c index 8b14aa3aa..30612aff9 100644 --- a/src/json.c +++ b/src/json.c @@ -2517,7 +2517,7 @@ static void jsonRemoveAllNulls(JsonNode *pNode){ static int jsonBlobExpand(JsonParse *pParse, u32 N){ u8 *aNew; u32 t; - if( N<=pParse->nBlobAlloc ) return 0; + assert( N>pParse->nBlobAlloc ); if( pParse->nBlobAlloc==0 ){ t = 100; }else{ |