]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Fix warning introduced by PR #1133 1169/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 13 Sep 2017 13:14:46 +0000 (09:14 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 13 Sep 2017 13:14:46 +0000 (09:14 -0400)
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 <sharpd@cumulusnetworks.com>
bgpd/bgp_evpn_vty.c

index 17511827b1b8fcffde582f53b2d7a3a1f48b1fa8..528efd2277a0245391e93a6bee70ab316aaada1b 100644 (file)
@@ -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);