]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Initialize allocated struct proto :-)
authorMartin Mares <mj@ucw.cz>
Thu, 4 Mar 1999 11:39:24 +0000 (11:39 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 4 Mar 1999 11:39:24 +0000 (11:39 +0000)
nest/proto.c

index 99a4e85cdd6af173926943186fa0c9ee643fbf25..1715585094407fbda9daaedf774f996695f61d4e 100644 (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;