提交 ec71726e 编写于 作者: M Max Bruckner

fix boolean expression

This expression was always false.
上级 1a20eb84
...@@ -205,7 +205,7 @@ static int cJSONUtils_ApplyPatch(cJSON *object,cJSON *patch) ...@@ -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)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册