mirror of
https://github.com/json-c/json-c.git
synced 2026-04-08 14:59:06 +08:00
Merge pull request #239 from ploxiln/printbuf_empty
initialize null terminator of new printbuf
This commit is contained in:
@@ -42,6 +42,7 @@ struct printbuf* printbuf_new(void)
|
|||||||
free(p);
|
free(p);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
p->buf[0]= '\0';
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user