瀏覽代碼

Fix c99 violation!

git-svn-id: http://svn.code.sf.net/p/cjson/code@40 e3330c51-1366-4df0-8b21-3ccf24e3d50e
Dave Gamble 14 年之前
父節點
當前提交
9061b7a7e7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cJSON.c

+ 1 - 1
cJSON.c

@@ -239,8 +239,8 @@ static const char *skip(const char *in) {while (in && *in && (unsigned char)*in<
 /* Parse an object - create a new root, and populate. */
 cJSON *cJSON_Parse(const char *value)
 {
-	ep=0;
 	cJSON *c=cJSON_New_Item();
+	ep=0;
 	if (!c) return 0;       /* memory fail */
 
 	if (!parse_value(c,skip(value))) {cJSON_Delete(c);return 0;}