aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xs_json.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xs_json.h b/xs_json.h
index a9577ee..e65499a 100644
--- a/xs_json.h
+++ b/xs_json.h
@@ -282,6 +282,10 @@ static xs_val *_xs_json_load_lexer(FILE *f, js_type *t)
cp += 0x2400;
break;
+
+ default:
+ *t = JS_ERROR;
+ break;
}
v = xs_utf8_insert(v, cp, &offset);