summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-02-06 08:23:13 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-02-06 08:23:13 -0500
commit8c5c49ace83970ed002dc2f88df17f3239c4071c (patch)
treefb0de5b3a87980f8d25b97b4512aa1356bd30a6a
parentc4fb2504916ceb8bc48c0937ce9a42e42af8f4b6 (diff)
bgpd: Cleanup compile error?
For some reason we are getting a compile error around a variable I didn't touch in the other commits. Make it happy. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--bgpd/bgp_nexthop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index 41a5577a70..ab0c3a3f11 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -474,7 +474,7 @@ int bgp_nexthop_self(struct bgp *bgp, afi_t afi, uint8_t type, uint8_t sub_type,
struct attr *attr, struct bgp_node *rn)
{
uint8_t new_afi = afi == AFI_IP ? AF_INET : AF_INET6;
- struct bgp_addr tmp_addr = {0}, *addr = NULL;
+ struct bgp_addr tmp_addr = {{0}}, *addr = NULL;
struct tip_addr tmp_tip, *tip = NULL;
bool is_bgp_static_route =