From cf9d57d56cac21fc59465b8d26cf29bf6d2a87b3 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Fri, 3 Feb 2017 20:34:37 +0100 Subject: [PATCH] Fix incorrect return --- cJSON.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.c b/cJSON.c index 80b804d..26d1f8c 100644 --- 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);