Allocate callback entries with contents 0d out.

svn:r1093
This commit is contained in:
Nick Mathewson 2009-02-01 05:26:47 +00:00
parent 2e3f0f682a
commit e84c765615

View File

@ -1561,7 +1561,7 @@ struct evbuffer_cb_entry *
evbuffer_add_cb(struct evbuffer *buffer, evbuffer_cb cb, void *cbarg)
{
struct evbuffer_cb_entry *e;
if (! (e = mm_malloc(sizeof(struct evbuffer_cb_entry))))
if (! (e = mm_calloc(1, sizeof(struct evbuffer_cb_entry))))
return NULL;
e->cb = cb;
e->cbarg = cbarg;