mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-26 21:04:24 +08:00
parent
826cd6f842
commit
3ef4e4e730
5
cJSON.c
5
cJSON.c
@ -1660,6 +1660,11 @@ static cJSON_bool parse_object(cJSON * const item, parse_buffer * const input_bu
|
|||||||
current_item = new_item;
|
current_item = new_item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cannot_access_at_index(input_buffer, 1))
|
||||||
|
{
|
||||||
|
goto fail; /* nothing comes after the comma */
|
||||||
|
}
|
||||||
|
|
||||||
/* parse the name of the child */
|
/* parse the name of the child */
|
||||||
input_buffer->offset++;
|
input_buffer->offset++;
|
||||||
buffer_skip_whitespace(input_buffer);
|
buffer_skip_whitespace(input_buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user