aboutsummaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c1
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++;
}