Adjust the "-Infinity" fix on the json-c-0.12 branch to match the master branch.

This commit is contained in:
Eric Haszlakiewicz
2017-11-26 23:31:00 -05:00
parent 2fc68d46ac
commit 0e1d83f980
3 changed files with 6 additions and 1 deletions

View File

@@ -337,7 +337,6 @@ 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;
@@ -686,6 +685,7 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok,
(c == 'i' || c == 'I'))
{
state = json_tokener_state_inf;
tok->st_pos = 0;
goto redo_char;
}
}