diff --git a/cJSON_Utils.c b/cJSON_Utils.c index c4a0ae00639952f2409c44c2259a297513b1c277..c61e77357471b5461018f7ede36fc74934dcf852 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) {