summaryrefslogtreecommitdiffstats
path: root/nest/cli.c
diff options
context:
space:
mode:
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;