Browse Source

fix boolean expression

This expression was always false.
Max Bruckner 9 years ago
parent
commit
ec71726ef8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cJSON_Utils.c

+ 1 - 1
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)
 	{