Fixed an undefined symbol bug in CLI introduced by filter refactoring

This commit is contained in:
Maria Matejka 2019-03-20 16:50:58 +01:00
parent 8d65add626
commit 2ab680c697

View file

@ -262,6 +262,7 @@ cli_command(struct cli *c)
bzero(&f, sizeof(f)); bzero(&f, sizeof(f));
f.mem = c->parser_pool; f.mem = c->parser_pool;
f.pool = rp_new(c->pool, "Config"); f.pool = rp_new(c->pool, "Config");
init_list(&f.symbols);
cf_read_hook = cli_cmd_read_hook; cf_read_hook = cli_cmd_read_hook;
cli_rh_pos = c->rx_buf; cli_rh_pos = c->rx_buf;
cli_rh_len = strlen(c->rx_buf); cli_rh_len = strlen(c->rx_buf);