diff options
Diffstat (limited to 'json-lexer.c')
-rw-r--r-- | json-lexer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/json-lexer.c b/json-lexer.c index 9d649205a7..0b145d125c 100644 --- a/json-lexer.c +++ b/json-lexer.c @@ -275,6 +275,7 @@ void json_lexer_init(JSONLexer *lexer, JSONLexerEmitter func) lexer->emit = func; lexer->state = IN_START; lexer->token = qstring_new(); + lexer->x = lexer->y = 0; } static int json_lexer_feed_char(JSONLexer *lexer, char ch) |