From 88a837f6ce34ef469cdf1fd8f83c9f8e4c87b7a9 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 13 Sep 2017 09:14:46 -0400 Subject: [PATCH] bgpd: Fix warning introduced by PR #1133 I am merely fixing the compiler warning. I do not understand what the as value should be for output to the end user or where it should be retrieved from. Signed-off-by: Donald Sharp --- bgpd/bgp_evpn_vty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index 17511827b1..528efd2277 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -84,6 +84,7 @@ static void display_import_rt(struct vty *vty, struct irt_node *irt, if (sub_type != ECOMMUNITY_ROUTE_TARGET) return; + memset(&eas, 0, sizeof(eas)); switch (type) { case ECOMMUNITY_ENCODE_AS: eas.as = (*pnt++ << 8); -- 2.39.5