mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-28 06:30:52 +08:00
commit
7632993ebe
2
cJSON.c
2
cJSON.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user