Skip to content

Commit

Permalink
Fix incorrect return
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed Feb 3, 2017
1 parent 4d95639 commit cf9d57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cf9d57d

Please sign in to comment.