Nest: Uninitialized variable fix

Thanks to Vincent Bernat for reporting this.
This commit is contained in:
Maria Matejka 2019-07-08 13:04:50 +02:00
parent 2ce25ebbef
commit 05e3933c06

View file

@ -1575,7 +1575,7 @@ rte_update2(struct channel *c, const net_addr *n, rte *new, struct rte_src *src)
} }
else if (filter) else if (filter)
{ {
rta *old_attrs; rta *old_attrs = NULL;
rte_make_tmp_attrs(&new, rte_update_pool, &old_attrs); rte_make_tmp_attrs(&new, rte_update_pool, &old_attrs);
int fr = f_run(filter, &new, rte_update_pool, 0); int fr = f_run(filter, &new, rte_update_pool, 0);