cJSON

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

commit ab8489a851b77bc94a2b308b236e36f54a4d4052
parent 795c3acabed25c9672006b2c0f40be8845064827
Author: Max Bruckner <max@maxbruckner.de>
Date:   Thu,  6 Apr 2017 09:56:23 +0200

Readme: Fix #143 item->name --> item->string

Diffstat:
MREADME.md | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -240,8 +240,8 @@ void parse_and_callback(cJSON *item, const char *prefix) { while (item) { - char *newprefix = malloc(strlen(prefix) + strlen(item->name) + 2); - sprintf(newprefix, "%s/%s", prefix, item->name); + char *newprefix = malloc(strlen(prefix) + strlen(item->string) + 2); + sprintf(newprefix, "%s/%s", prefix, item->string); int dorecurse = callback(newprefix, item->type, item); if (item->child && dorecurse) {