diff options
author | Martin Mares <mj@ucw.cz> | 1999-11-30 14:04:09 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-11-30 14:04:09 +0000 |
commit | 1d2664a4d4455470e0b6c7fc50d232283e39e1e0 (patch) | |
tree | af8631708680683180d89001f64baa0be5929d2c /nest/cli.c | |
parent | c9aae7f47fd7ad71b80cbc86c01a26c504ba08d0 (diff) |
Remember protocol instance in proto_config and use that for
`show protocols <name>'.
Diffstat (limited to 'nest/cli.c')
-rw-r--r-- | nest/cli.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |