cJSON

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

commit cf9d57d56cac21fc59465b8d26cf29bf6d2a87b3
parent 4d9563900172ef828cf08923c7a41011b3e5e519
Author: Max Bruckner <max@maxbruckner.de>
Date:   Fri,  3 Feb 2017 20:34:37 +0100

Fix incorrect return

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

diff --git a/cJSON.c b/cJSON.c @@ -921,7 +921,7 @@ char *cJSON_PrintBuffered(const cJSON *item, int prebuffer, cjbool fmt) if (prebuffer < 0) { - return false; + return NULL; } p.buffer = (unsigned char*)cJSON_malloc((size_t)prebuffer);