From: Martin Mares Date: Sun, 18 Oct 1998 12:26:02 +0000 (+0000) Subject: Preconfig, postconfig and init hooks can be NULL. X-Git-Tag: v1.2.0~1833 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3629bcf0c7ff8ccc56baabc4769f90635d1a7864;p=thirdparty%2Fbird.git Preconfig, postconfig and init hooks can be NULL. --- diff --git a/nest/proto.c b/nest/proto.c index 6c0843d88..f142a77dc 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -48,7 +48,8 @@ protos_preconfig(void) WALK_LIST(p, protocol_list) { debug("...%s\n", p->name); - p->preconfig(p); + if (p->preconfig) + p->preconfig(p); } } @@ -61,7 +62,8 @@ protos_postconfig(void) WALK_LIST(p, protocol_list) { debug("...%s\n", p->name); - p->postconfig(p); + if (p->postconfig) + p->postconfig(p); } } @@ -121,5 +123,6 @@ protos_init(void) debug("Initializing protocols\n"); WALK_LIST(p, protocol_list) - p->init(p); + if (p->init) + p->init(p); }