Merge pull request #14824 from opensourcerouting/ospf6-p2xp-fixuninit

ospf6d: fix uninitialized value warning in p2xp
This commit is contained in:
mobash-rasool 2023-11-19 22:28:51 +05:30 committed by GitHub
commit f9012ed5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)