From 1d854508831ef85bfb85817a1cd9a36a473fef91 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sun, 30 Apr 2017 19:30:26 +0200 Subject: [PATCH] fix configurable compare_stirings --- cJSON_Utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON_Utils.c b/cJSON_Utils.c index 78c9b1d..bc4734f 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -437,7 +437,7 @@ static cJSON_bool compare_json(cJSON *a, cJSON *b) case cJSON_String: /* string mismatch. */ - if (compare_strings((unsigned char*)a->valuestring, (unsigned char*)b->valuestring, true) != 0) + if (strcmp(a->valuestring, b->valuestring) != 0) { return false; }