]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Uninitialized variable fix
authorMaria Matejka <mq@ucw.cz>
Mon, 8 Jul 2019 11:04:50 +0000 (13:04 +0200)
committerMaria Matejka <mq@ucw.cz>
Mon, 8 Jul 2019 11:05:14 +0000 (13:05 +0200)
Thanks to Vincent Bernat for reporting this.

nest/rt-table.c

index 0b796228920405e4ca57f77dd19c0763ec4c9acf..327156c8ef17aef204e8c5aea788ea413ade0248 100644 (file)
@@ -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);