From: Donald Sharp Date: Tue, 15 May 2018 17:57:40 +0000 (-0400) Subject: bgpd: Prevent possible uninited variable. X-Git-Tag: frr-6.1-dev~434^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F2240%2Fhead;p=mirror%2Ffrr.git bgpd: Prevent possible uninited variable. Signed-off-by: Donald Sharp --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 997d708baf..39765558b6 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)