Skip to content
Snippets Groups Projects
Commit 8777557d3b97 authored by miaoerduo's avatar miaoerduo
Browse files

feat: set list head's prev in parse_array and parse_object

parent fe0968269d46
No related branches found
No related tags found
No related merge requests found
......@@ -1509,6 +1509,10 @@
success:
input_buffer->depth--;
if (head != NULL) {
head->prev = current_item;
}
item->type = cJSON_Array;
item->child = head;
......@@ -1681,6 +1685,10 @@
success:
input_buffer->depth--;
if (head != NULL) {
head->prev = current_item;
}
item->type = cJSON_Object;
item->child = head;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment