mirror of https://git.kore.io/kore.git
consume any initial whitespace in JSON data.
This commit is contained in:
parent
8008fe8b60
commit
e712e3a951
|
@ -83,6 +83,8 @@ kore_json_parse(struct kore_json *json)
|
|||
if (json->root)
|
||||
return (KORE_RESULT_OK);
|
||||
|
||||
json_consume_whitespace(json);
|
||||
|
||||
if (!json_peek(json, &ch))
|
||||
return (KORE_RESULT_ERROR);
|
||||
|
||||
|
|
Loading…
Reference in New Issue