From: David Lamparter Date: Sun, 19 Apr 2015 13:17:02 +0000 (+0200) Subject: bgpd: fix ecommunity_token initialiser X-Git-Tag: frr-2.0-rc1~753 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ec5044feb90b735b814aa4201538423a22869109;p=mirror%2Ffrr.git bgpd: fix ecommunity_token initialiser This pulls up ecommunity_token_unknown to be the first enum value (at 0), and uses that as initialiser to get rid of the uninitialised use warning. Signed-off-by: David Lamparter (cherry picked from commit b1672ce858cc9c16fd7cc67b673aa241d9583a59) --- diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 2a6bb23b2f..f9f11866c8 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -288,10 +288,10 @@ ecommunity_finish (void) /* Extended Communities token enum. */ enum ecommunity_token { + ecommunity_token_unknown = 0, ecommunity_token_rt, ecommunity_token_soo, ecommunity_token_val, - ecommunity_token_unknown }; /* Get next Extended Communities token from the string. */