cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 7632993ebe6343a92166375f5b7d86541b96e558
parent 0fd1435f4b9bbca92747b4b2ccc0b38823f1a0ff
Author: Kevin Branigan <kbranigan@gmail.com>
Date:   Mon, 15 Jun 2015 10:59:20 -0400

Merge pull request #7 from DongwenHuang/master

Update cJSON.c

Diffstat:
McJSON.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cJSON.c b/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);