From 744e47353accda69c4d2f3d022eeacbf7b7d463e Mon Sep 17 00:00:00 2001 From: Alan Wang <948467222@qq.com> Date: Wed, 25 Aug 2021 15:02:00 +0800 Subject: [PATCH] fix: remove redundant condition (#605) --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 030311c..04c37f6 100644 --- a/cJSON.c +++ b/cJSON.c @@ -2976,7 +2976,7 @@ CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item) CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * const b, const cJSON_bool case_sensitive) { - if ((a == NULL) || (b == NULL) || ((a->type & 0xFF) != (b->type & 0xFF)) || cJSON_IsInvalid(a)) + if ((a == NULL) || (b == NULL) || ((a->type & 0xFF) != (b->type & 0xFF))) { return false; }