From: paul Date: Sun, 5 Feb 2006 17:55:35 +0000 (+0000) Subject: [bgpd] trivial fix for gcc warning X-Git-Tag: frr-2.0-rc1~2767 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=3fff6ffc697e362959de95b6cc292fd6fb7502a6;p=matthieu%2Ffrr.git [bgpd] trivial fix for gcc warning 2006-02-05 Paul Jakma * bgp_aspath.c: (aspath_gettoken) fix gcc warning about possible uninitialised usage. --- diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index 8e2a397dcd..6101b50e8d 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -10,6 +10,8 @@ (bgp_update_main) Use pcount helpers. (bgp_clear_route_node) ditto, aslo REMOVED routes don't need clearing. + * bgp_aspath.c: (aspath_gettoken) fix gcc warning about + possible uninitialised usage. 2006-02-02 Paul Jakma diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index 2cc5ed3592..9fce6e3144 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -1361,9 +1361,9 @@ aspath_gettoken (const char *buf, enum as_token *token, u_short *asno) struct aspath * aspath_str2aspath (const char *str) { - enum as_token token; + enum as_token token = as_token_unknown; u_short as_type; - u_short asno; + u_short asno = NULL; struct aspath *aspath; int needtype;