From b01c5404eb462fe9ffba127a947f51a27f2585e2 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 7 Feb 2017 17:48:53 -0800 Subject: [PATCH] Ensure error_end_position variable is initialized --- src/runtime/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/parser.c b/src/runtime/parser.c index 24e8281a..3323f19d 100644 --- a/src/runtime/parser.c +++ b/src/runtime/parser.c @@ -260,6 +260,7 @@ static Tree *parser__lex(Parser *self, StackVersion version) { LOG("skip_unrecognized_character"); skipped_error = true; error_start_position = self->lexer.token_start_position; + error_end_position = self->lexer.token_start_position; first_error_character = self->lexer.data.lookahead; }