Incorrect boolean expression
Brought to you by:
davegamble
When compiling cJSON_Util.c my compiler complained about this line, saying that it is always false:
if (!patches->type==cJSON_Array) return 1; / malformed patches. /
Looking at this line it looks like the intention was to write "!(patches->type==cJSON_Array)", not the way you see in the code.
I attached a patch!
Fixed upstream (thanks to kbranigan) at https://github.com/DaveGamble/cJSON