From 9061b7a7e774cc32cc196f8df82fddac90259dcf Mon Sep 17 00:00:00 2001 From: Dave Gamble Date: Mon, 14 Mar 2011 21:34:03 +0000 Subject: [PATCH] Fix c99 violation! git-svn-id: http://svn.code.sf.net/p/cjson/code@40 e3330c51-1366-4df0-8b21-3ccf24e3d50e --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 4f30e3a..f922ad6 100644 --- a/cJSON.c +++ b/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;}