diff --git a/cJSON_Utils.c b/cJSON_Utils.c index c4a0ae0..c61e773 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -205,7 +205,7 @@ static int cJSONUtils_ApplyPatch(cJSON *object,cJSON *patch) int cJSONUtils_ApplyPatches(cJSON *object,cJSON *patches) { 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; while (patches) {