bgpd: properly initialize ret variable

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
This commit is contained in:
Mitesh Kanjariya 2017-11-13 10:57:52 -08:00
parent df399d1cb1
commit c4edf7086b

View File

@ -1471,7 +1471,7 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
struct bgp_node *rn; struct bgp_node *rn;
struct bgp_info *ri; struct bgp_info *ri;
struct attr *attr_new; struct attr *attr_new;
int ret; int ret = 0;
struct prefix p; struct prefix p;
struct prefix *pp = &p; struct prefix *pp = &p;
afi_t afi = 0; 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_node *rn;
struct bgp_info *ri; struct bgp_info *ri;
int ret; int ret = 0;
struct prefix p; struct prefix p;
struct prefix *pp = &p; struct prefix *pp = &p;
afi_t afi = 0; afi_t afi = 0;