summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2026-02-24 18:02:20 +0100
committerGravatar grunfink2026-02-24 18:02:20 +0100
commit6e756b22c41b2fd552c11e86345df9308e92ed2b (patch)
treebdbec6cd8e1ccc01601ec9e989174d0a867d473a
parentUpdated README. (diff)
downloadsnac2-6e756b22c41b2fd552c11e86345df9308e92ed2b.tar.gz
snac2-6e756b22c41b2fd552c11e86345df9308e92ed2b.tar.xz
snac2-6e756b22c41b2fd552c11e86345df9308e92ed2b.zip
Fixed another new error in the JSON parser.
-rw-r--r--xs_json.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xs_json.h b/xs_json.h
index e1c05f4..6f42eab 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -300,14 +300,13 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t)
300 else { 300 else {
301 char cc = c; 301 char cc = c;
302 v = xs_insert_m(v, offset, &cc, 1); 302 v = xs_insert_m(v, offset, &cc, 1);
303 offset++;
303 } 304 }
304 305
305 if (!xs_is_string(v)) { 306 if (!xs_is_string(v)) {
306 *t = JS_ERROR; 307 *t = JS_ERROR;
307 break; 308 break;
308 } 309 }
309
310 offset++;
311 } 310 }
312 } 311 }
313 312