Skip to content

Commit 7e600ec

Browse files
committed
Merge pull request #36 from svogl/patch-1
Update json.c
2 parents 19495fc + 5c14021 commit 7e600ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ json_item *init_json_parser(const char *json_string)
844844

845845
jc = new_JSON_parser(&config);
846846

847-
for (pRaw = json_string; *pRaw; pRaw++) {
847+
for (pRaw = json_string; (unsigned char)*pRaw; pRaw++) {
848848
if (!JSON_parser_char(jc, *pRaw)) {
849849
free_json_item(jcx.head);
850850
delete_JSON_parser(jc);

0 commit comments

Comments
 (0)