mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
commit
361b9a58cb
@ -209,7 +209,7 @@ static int cJSONUtils_ApplyPatch(cJSON *object,cJSON *patch)
|
|||||||
int cJSONUtils_ApplyPatches(cJSON *object,cJSON *patches)
|
int cJSONUtils_ApplyPatches(cJSON *object,cJSON *patches)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
if (!patches->type==cJSON_Array) return 1; /* malformed patches. */
|
if (patches->type!=cJSON_Array) return 1; /* malformed patches. */
|
||||||
if (patches) patches=patches->child;
|
if (patches) patches=patches->child;
|
||||||
while (patches)
|
while (patches)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user