summaryrefslogtreecommitdiffstats
path: root/ospf6d
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-11-17 14:39:27 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-11-17 14:42:28 +0100
commit484608f06527d2c569109da9b1ed5843bccaf597 (patch)
tree12a0247753a328cf50a5aab9ae45dadbf02e8fda /ospf6d
parentMerge pull request #14807 from Keelan10/fix-babel-int-delete-leak (diff)
downloadfrr-484608f06527d2c569109da9b1ed5843bccaf597.tar.xz
frr-484608f06527d2c569109da9b1ed5843bccaf597.zip
ospf6d: fix uninitialized value warning in p2xp
GCC is complaining prev_cost may be used uninitialized. It really can't, but let's get rid of the warning. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d')
-rw-r--r--ospf6d/ospf6_neighbor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_neighbor.c b/ospf6d/ospf6_neighbor.c
index 47d01e72a..0cf3aade1 100644
--- a/ospf6d/ospf6_neighbor.c
+++ b/ospf6d/ospf6_neighbor.c
@@ -755,7 +755,7 @@ DEFPY(ipv6_ospf6_p2xp_neigh_cost, ipv6_ospf6_p2xp_neigh_cost_cmd,
VTY_DECLVAR_CONTEXT(interface, ifp);
struct ospf6_interface *oi = ifp->info;
struct ospf6_if_p2xp_neighcfg *p2xp_cfg;
- uint32_t prev_cost;
+ uint32_t prev_cost = 0;
if (!oi) {
if (no)