From: Jlguardi Date: Fri, 3 Nov 2017 08:55:39 +0000 (+0100) Subject: Fixed #371: -Infinity correctly parsed after other Infinity X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F372%2Fhead;p=thirdparty%2Fjson-c.git Fixed #371: -Infinity correctly parsed after other Infinity --- diff --git a/json_tokener.c b/json_tokener.c index 7ff53a1d..0d38fc1d 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -337,6 +337,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok, state = json_tokener_state_number; printbuf_reset(tok->pb); tok->is_double = 0; + tok->st_pos = 0; goto redo_char; default: tok->err = json_tokener_error_parse_unexpected;