Initialize allocated struct proto :-)

This commit is contained in:
Martin Mares 1999-03-04 11:39:24 +00:00
parent 7a2105becd
commit 8fe48f1377

View file

@ -77,7 +77,7 @@ void *
proto_new(struct proto_config *c, unsigned size)
{
struct protocol *pr = c->proto;
struct proto *p = mb_alloc(proto_pool, size);
struct proto *p = mb_allocz(proto_pool, size);
p->cf = c;
p->debug = c->debug;