mirror of
https://github.com/DaveGamble/cJSON
synced 2025-05-09 19:47:57 +00:00
parent
60ff122ef5
commit
f66cbab4bf
2
cJSON.c
2
cJSON.c
@ -2280,7 +2280,7 @@ CJSON_PUBLIC(cJSON_bool) cJSON_InsertItemInArray(cJSON *array, int which, cJSON
|
|||||||
return add_item_to_array(array, newitem);
|
return add_item_to_array(array, newitem);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (after_inserted != array->child && newitem->prev == NULL) {
|
if (after_inserted != array->child && after_inserted->prev == NULL) {
|
||||||
/* return false if after_inserted is a corrupted array item */
|
/* return false if after_inserted is a corrupted array item */
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user