mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
fix boolean expression
This expression was always false.
This commit is contained in:
parent
1a20eb8494
commit
ec71726ef8
@ -205,7 +205,7 @@ static int cJSONUtils_ApplyPatch(cJSON *object,cJSON *patch)
|
|||||||
int cJSONUtils_ApplyPatches(cJSON *object,cJSON *patches)
|
int cJSONUtils_ApplyPatches(cJSON *object,cJSON *patches)
|
||||||
{
|
{
|
||||||
int err;
|
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;
|
if (patches) patches=patches->child;
|
||||||
while (patches)
|
while (patches)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user