diff --git a/cJSON_Utils.c b/cJSON_Utils.c index 0d199f88303f7fe547a497c2a6530c468dd5007f..f0f9094df4a776e6fbc513ea69509e4bd574a069 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -510,7 +510,7 @@ static cJSON *sort_list(cJSON *list, const cJSON_bool case_sensitive) while ((first != NULL) && (second != NULL)) { cJSON *smaller = NULL; - if (compare_strings((unsigned char*)first->string, (unsigned char*)second->string, false) < 0) + if (compare_strings((unsigned char*)first->string, (unsigned char*)second->string, case_sensitive) < 0) { smaller = first; }