]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: properly initialize ret variable
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Mon, 13 Nov 2017 18:57:52 +0000 (10:57 -0800)
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Thu, 14 Dec 2017 18:57:07 +0000 (10:57 -0800)
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
bgpd/bgp_evpn.c

index 27d7d7aab042faf934b2fa5d5aa338768339e497..0d0480781824969dbbd1e64de42e3c4fef5a809d 100644 (file)
@@ -1471,7 +1471,7 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
        struct bgp_node *rn;
        struct bgp_info *ri;
        struct attr *attr_new;
-       int ret;
+       int ret = 0;
        struct prefix p;
        struct prefix *pp = &p;
        afi_t afi = 0;
@@ -1628,7 +1628,7 @@ static int uninstall_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
 {
        struct bgp_node *rn;
        struct bgp_info *ri;
-       int ret;
+       int ret = 0;
        struct prefix p;
        struct prefix *pp = &p;
        afi_t afi = 0;