parser bug fix

This commit is contained in:
cozis
2022-04-19 00:37:07 +02:00
parent 0d2fe6ac01
commit 7a77020c29
+3
View File
@@ -498,7 +498,10 @@ static xj_value *parse_object(context_t *ctx)
}
if(ctx->str[ctx->i] == '}') /* Empty object */
{
ctx->i += 1; // Skip '}'.
return xj_value_object__nocheck(NULL, 0, ctx->alloc, ctx->error);
}
xj_value *head = NULL;
xj_value **tail = &head;