瀏覽代碼

fix configurable compare_stirings

Max Bruckner 8 年之前
父節點
當前提交
1d85450883
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cJSON_Utils.c

+ 1 - 1
cJSON_Utils.c

@@ -437,7 +437,7 @@ static cJSON_bool compare_json(cJSON *a, cJSON *b)
 
         case cJSON_String:
             /* string mismatch. */
-            if (compare_strings((unsigned char*)a->valuestring, (unsigned char*)b->valuestring, true) != 0)
+            if (strcmp(a->valuestring, b->valuestring) != 0)
             {
                 return false;
             }