summaryrefslogtreecommitdiff
path: root/json_tokener.c
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2017-11-26 22:42:40 -0500
committerEric Haszlakiewicz <erh+git@nimenees.com>2017-11-26 22:44:39 -0500
commit4d1e0b44099c85b118f6cdb2c7b116fd92e6f2a4 (patch)
tree5963ab7d24139474f07c1363cad65096f7490a23 /json_tokener.c
parent2a22858fe77e72388f9e1f2a73576dd135f5bdae (diff)
downloadjson-c-4d1e0b44099c85b118f6cdb2c7b116fd92e6f2a4.tar.gz
Issue #371: fix parsing of "-Infinity" (although in a somewhat different location than PR#372 used), and add a case to test_parse to check for this.
Diffstat (limited to 'json_tokener.c')
-rw-r--r--json_tokener.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/json_tokener.c b/json_tokener.c
index 57d8367..2a92456 100644
--- a/json_tokener.c
+++ b/json_tokener.c
@@ -767,6 +767,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;
}
}