Explorar o código

fix another compare_strings

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
487a8b76a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cJSON_Utils.c

+ 1 - 1
cJSON_Utils.c

@@ -914,7 +914,7 @@ static void create_patches(cJSON * const patches, const unsigned char * const pa
             return;
 
         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);
             }