mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-26 12:15:03 +00:00
Fix incorrect return
This commit is contained in:
1 parent
4d95639001
commit
cf9d57d56c
1 file changed
+1
-1
@@ -921,7 +921,7 @@ char *cJSON_PrintBuffered(const cJSON *item, int prebuffer, cjbool fmt)
|
|||||||
|
|
||||||
if (prebuffer < 0)
|
if (prebuffer < 0)
|
||||||
{
|
{
|
||||||
return false;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.buffer = (unsigned char*)cJSON_malloc((size_t)prebuffer);
|
p.buffer = (unsigned char*)cJSON_malloc((size_t)prebuffer);
|
||||||
|
|||||||
Reference in new issue
Block a user