From ec71726ef83e7b142ea87ddd6e24a8505289129f Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Tue, 13 Oct 2015 20:33:37 +0200 Subject: [PATCH] fix boolean expression This expression was always false. --- cJSON_Utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {