From 1d2664a4d4455470e0b6c7fc50d232283e39e1e0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 30 Nov 1999 14:04:09 +0000 Subject: Remember protocol instance in proto_config and use that for `show protocols '. --- nest/cli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nest/cli.c') diff --git a/nest/cli.c b/nest/cli.c index ca4cc82..88fb78d 100644 --- a/nest/cli.c +++ b/nest/cli.c @@ -6,6 +6,8 @@ * Can be freely distributed and used under the terms of the GNU GPL. */ +#include + #include "nest/bird.h" #include "nest/cli.h" #include "conf/conf.h" @@ -119,7 +121,7 @@ cli_command(struct cli *c) struct config f; int res; - f.pool = NULL; + bzero(&f, sizeof(f)); f.mem = c->parser_pool; cf_read_hook = cli_cmd_read_hook; cli_rh_pos = c->rx_buf; -- cgit v1.2.3