From: Donald Sharp Date: Wed, 13 Sep 2017 13:14:46 +0000 (-0400) Subject: bgpd: Fix warning introduced by PR #1133 X-Git-Tag: frr-4.0-dev~314^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F1169%2Fhead;p=mirror%2Ffrr.git 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 --- 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);