summaryrefslogtreecommitdiffstats
path: root/nest/cli.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-11-30 15:04:09 +0100
committerMartin Mares <mj@ucw.cz>1999-11-30 15:04:09 +0100
commit1d2664a4d4455470e0b6c7fc50d232283e39e1e0 (patch)
treeaf8631708680683180d89001f64baa0be5929d2c /nest/cli.c
parentc9aae7f47fd7ad71b80cbc86c01a26c504ba08d0 (diff)
downloadbird-1d2664a4d4455470e0b6c7fc50d232283e39e1e0.tar
bird-1d2664a4d4455470e0b6c7fc50d232283e39e1e0.zip
Remember protocol instance in proto_config and use that for
`show protocols <name>'.
Diffstat (limited to 'nest/cli.c')
-rw-r--r--nest/cli.c4
1 files changed, 3 insertions, 1 deletions
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 <string.h>
+
#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;