diff options
author | drh <> | 2022-01-17 15:23:57 +0000 |
---|---|---|
committer | drh <> | 2022-01-17 15:23:57 +0000 |
commit | 14818366c72d612b660cf7b44da88786dd2f77bd (patch) | |
tree | d2cca7f64e16eb02a739e92dc6c263fbbdb0f280 /src/json.c | |
parent | 5a6f818d84e6eecffbd25a212654392479eb22b6 (diff) | |
download | sqlite-14818366c72d612b660cf7b44da88786dd2f77bd.tar.gz sqlite-14818366c72d612b660cf7b44da88786dd2f77bd.zip |
Fix incorrect testcase() and assert() macros in json.c. They were not causing
problems. The assert() was simply unreachable. The testcase() added an
unreachable condition.
FossilOrigin-Name: 5623497adc8af9950fd79392000a68ba6fdca43594603eadaa7e19c8fb845a7d
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c index dbc3faaef..3f12f03fd 100644 --- a/src/json.c +++ b/src/json.c @@ -1884,8 +1884,8 @@ static void jsonSetFunc( }else if( x.nErr ){ goto jsonSetDone; }else if( pNode && (bApnd || bIsSet) ){ - testcase( pNode->eU!=0 && pNode->eU!=1 && pNode->eU!=4 ); - assert( pNode->eU!=3 || pNode->eU!=5 ); + testcase( pNode->eU!=0 && pNode->eU!=1 ); + assert( pNode->eU!=3 && pNode->eU!=5 ); VVA( pNode->eU = 4 ); pNode->jnFlags |= (u8)JNODE_REPLACE; pNode->u.iReplace = i + 1; |