Merge pull request #19 from FSMaxB/fix_boolean

fix boolean expression
This commit is contained in:
Kevin Branigan 2015-10-18 17:03:47 -04:00
commit 361b9a58cb

View File

@ -209,7 +209,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)
{