提交 7632993e 编写于 作者: K Kevin Branigan

Merge pull request #7 from DongwenHuang/master

Update cJSON.c
...@@ -467,7 +467,7 @@ static char *print_object(cJSON *item,int depth,int fmt) ...@@ -467,7 +467,7 @@ static char *print_object(cJSON *item,int depth,int fmt)
/* Collect all the results into our arrays: */ /* Collect all the results into our arrays: */
child=item->child;depth++;if (fmt) len+=depth; child=item->child;depth++;if (fmt) len+=depth;
while (child) while (child&&!fail)
{ {
names[i]=str=print_string_ptr(child->string); names[i]=str=print_string_ptr(child->string);
entries[i++]=ret=print_value(child,depth,fmt); entries[i++]=ret=print_value(child,depth,fmt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册