mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
fix another compare_strings
This commit is contained in:
@ -914,7 +914,7 @@ static void create_patches(cJSON * const patches, const unsigned char * const pa
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
case cJSON_String:
|
case cJSON_String:
|
||||||
if (compare_strings((unsigned char*)from->valuestring, (unsigned char*)to->valuestring, true) != 0)
|
if (strcmp((unsigned char*)from->valuestring, (unsigned char*)to->valuestring) != 0)
|
||||||
{
|
{
|
||||||
compose_patch(patches, (const unsigned char*)"replace", path, NULL, to);
|
compose_patch(patches, (const unsigned char*)"replace", path, NULL, to);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user