diff --git a/cJSON_Utils.c b/cJSON_Utils.c index 8760433a7799bf393d7dcc827f205d036909fec6..793aa54b38141b5e4f1b5f176653c6c5fa057684 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -914,7 +914,7 @@ static void create_patches(cJSON * const patches, const unsigned char * const pa return; case cJSON_String: - if (strcmp((unsigned char*)from->valuestring, (unsigned char*)to->valuestring) != 0) + if (strcmp(from->valuestring, to->valuestring) != 0) { compose_patch(patches, (const unsigned char*)"replace", path, NULL, to); }