1
0
mirror of https://github.com/DaveGamble/cJSON synced 2024-12-26 00:22:04 +00:00

Update cJSON.c

This commit is contained in:
DongwenHuang 2015-06-15 17:13:22 +08:00
parent 0fd1435f4b
commit 10b888be54

View File

@ -467,7 +467,7 @@ static char *print_object(cJSON *item,int depth,int fmt)
/* Collect all the results into our arrays: */
child=item->child;depth++;if (fmt) len+=depth;
while (child)
while (child&&!fail)
{
names[i]=str=print_string_ptr(child->string);
entries[i++]=ret=print_value(child,depth,fmt);