fix boolean expression

This expression was always false.
This commit is contained in:
Max Bruckner 2015-10-13 20:33:37 +02:00
parent 1a20eb8494
commit ec71726ef8
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{