mirror of https://github.com/DaveGamble/cJSON
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:
parent
15dada46b5
commit
9061b7a7e7
2
cJSON.c
2
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;}
|
||||
|
|
Loading…
Reference in New Issue