diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-15 19:57:40 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-15 19:57:40 +0200 |
commit | 430892165e3a0ebc054f83222b6671e4169a1ab1 (patch) | |
tree | 3a3985328cb37431a4b2b68409e08cbf3a1c919b /bgpd | |
parent | pbrd: Fix compilation warn -> error (diff) | |
download | frr-430892165e3a0ebc054f83222b6671e4169a1ab1.tar.xz frr-430892165e3a0ebc054f83222b6671e4169a1ab1.zip |
bgpd: Prevent possible uninited variable.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 997d708ba..39765558b 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -6509,7 +6509,7 @@ void route_vty_out(struct vty *vty, struct prefix *p, struct bgp_info *binfo, ? true : false; bool nexthop_othervrf = false; - vrf_id_t nexthop_vrfid; + vrf_id_t nexthop_vrfid = VRF_DEFAULT; const char *nexthop_vrfname = "Default"; if (json_paths) |