瀏覽代碼

cJSON_ParseWithOpts: Fix -Wmissing-field-initializers

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

+ 1 - 1
cJSON.c

@@ -962,7 +962,7 @@ static parse_buffer *buffer_skip_whitespace(parse_buffer * const buffer)
 /* Parse an object - create a new root, and populate. */
 /* Parse an object - create a new root, and populate. */
 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
 CJSON_PUBLIC(cJSON *) cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
 {
 {
-    parse_buffer buffer = { 0 };
+    parse_buffer buffer = { 0, 0, 0 };
     cJSON *item = NULL;
     cJSON *item = NULL;
 
 
     /* reset error position */
     /* reset error position */