Fix incorrect return

This commit is contained in:
Max Bruckner 2017-02-03 20:34:37 +01:00
parent 4d95639001
commit cf9d57d56c

View File

@ -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);