Fix c99 violation!

git-svn-id: http://svn.code.sf.net/p/cjson/code@40 e3330c51-1366-4df0-8b21-3ccf24e3d50e
This commit is contained in:
Dave Gamble 2011-03-14 21:34:03 +00:00
parent 15dada46b5
commit 9061b7a7e7
1 changed files with 1 additions and 1 deletions

View File

@ -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;}