cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 361b9a58cbcc4b293424e875aa7714cf079989d0
parent 99c46e7661a8d7d8196511bddfe587cb63106d8f
Author: Kevin Branigan <kbranigan@gmail.com>
Date:   Sun, 18 Oct 2015 17:03:47 -0400

Merge pull request #19 from FSMaxB/fix_boolean

fix boolean expression

Diffstat:
McJSON_Utils.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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