]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Prevent possible uninited variable. 2240/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 May 2018 17:57:40 +0000 (13:57 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 15 May 2018 17:57:40 +0000 (13:57 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_route.c

index 997d708baf5d11eaebc15dbf7192ebd2fc33cce6..39765558b6b0060b3ad41b12d553211aa83a272d 100644 (file)
@@ -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)