diff options
author | drh <> | 2023-12-05 01:44:15 +0000 |
---|---|---|
committer | drh <> | 2023-12-05 01:44:15 +0000 |
commit | fa43e21711422f4d5f1e82b6eda8a96f474c5a99 (patch) | |
tree | ed1bffbaa5884b9708e13cbe631f9872803e2a49 /src/json.c | |
parent | ae2e9728020ecc71d8a47bddb0c0555fdca56a81 (diff) | |
download | sqlite-fa43e21711422f4d5f1e82b6eda8a96f474c5a99.tar.gz sqlite-fa43e21711422f4d5f1e82b6eda8a96f474c5a99.zip |
Use an assert() to fix a harmless static analyzer warning.
FossilOrigin-Name: a249ca657e624028bc6b3d2c2bcedd7162d118addb7d62ce519920cecebf1860
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c index 57082cf3f..7bb409a8e 100644 --- a/src/json.c +++ b/src/json.c @@ -3873,6 +3873,7 @@ static void jsonErrorFunc( }else{ /* Convert byte-offset s.iErr into a character offset */ u32 k; + assert( s.zJson!=0 ); /* Because s.oom is false */ for(k=0; k<s.iErr && ALWAYS(s.zJson[k]); k++){ if( (s.zJson[k] & 0xc0)!=0x80 ) iErrPos++; } |