summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-07-08 13:04:50 +0200
committerMaria Matejka <mq@ucw.cz>2019-07-08 13:05:14 +0200
commit05e3933c06b488e71c9c149c25aec9c733a8bd1f (patch)
tree56b3c853236900366ef33a0cb83b5ab98250188e /nest
parent2ce25ebbefd2eaf517361a446fe40679e78e23e9 (diff)
Nest: Uninitialized variable fix
Thanks to Vincent Bernat for reporting this.
Diffstat (limited to 'nest')
-rw-r--r--nest/rt-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 0b796228..327156c8 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1575,7 +1575,7 @@ rte_update2(struct channel *c, const net_addr *n, rte *new, struct rte_src *src)
}
else if (filter)
{
- rta *old_attrs;
+ rta *old_attrs = NULL;
rte_make_tmp_attrs(&new, rte_update_pool, &old_attrs);
int fr = f_run(filter, &new, rte_update_pool, 0);