]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Fixed #371: -Infinity correctly parsed after other Infinity 372/head
authorJlguardi <jlguardi@gmail.com>
Fri, 3 Nov 2017 08:55:39 +0000 (09:55 +0100)
committerJlguardi <jlguardi@gmail.com>
Fri, 3 Nov 2017 08:55:39 +0000 (09:55 +0100)
json_tokener.c

index 7ff53a1dc272dfe3776e8265496e9b6e5c767895..0d38fc1d29e0cba27e2354fa015e33cdfabb446d 100644 (file)
@@ -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;