diff options
| author | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-11-13 10:57:52 -0800 |
|---|---|---|
| committer | Mitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com> | 2017-12-14 10:57:07 -0800 |
| commit | c4edf7086b630ea9be8b0dfc9918b3d5a3dce6f2 (patch) | |
| tree | 86f562a1a228cb935955c84a29ae6b9c491cfd57 | |
| parent | df399d1cb12e8c2c8fe497160e43593f0ee60c5e (diff) | |
bgpd: properly initialize ret variable
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
| -rw-r--r-- | bgpd/bgp_evpn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 27d7d7aab0..0d04807818 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -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; |
