mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
Fix incorrect return
This commit is contained in:
parent
4d95639001
commit
cf9d57d56c
2
cJSON.c
2
cJSON.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user