Преглед изворни кода

another compare_strings fix

Max Bruckner пре 8 година
родитељ
комит
30906a01c0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      cJSON_Utils.c

+ 1 - 1
cJSON_Utils.c

@@ -1218,7 +1218,7 @@ CJSON_PUBLIC(cJSON *) cJSONUtils_GenerateMergePatch(cJSON * const from, cJSON *
         {
             if (to_child != NULL)
             {
-                diff = compare_strings((unsigned char*)from_child->string, (unsigned char*)to_child->string, true);
+                diff = strcmp(from_child->string, to_child->string);
             }
             else
             {