mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Initialize allocated struct proto :-)
This commit is contained in:
parent
7a2105becd
commit
8fe48f1377
@ -77,7 +77,7 @@ void *
|
|||||||
proto_new(struct proto_config *c, unsigned size)
|
proto_new(struct proto_config *c, unsigned size)
|
||||||
{
|
{
|
||||||
struct protocol *pr = c->proto;
|
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->cf = c;
|
||||||
p->debug = c->debug;
|
p->debug = c->debug;
|
||||||
|
Loading…
Reference in New Issue
Block a user