diff options
author | paul <paul> | 2006-02-05 18:55:35 +0100 |
---|---|---|
committer | paul <paul> | 2006-02-05 18:55:35 +0100 |
commit | 3fff6ffc697e362959de95b6cc292fd6fb7502a6 (patch) | |
tree | f9ac1da3796e48c1aa83ed3d5f9dd7594b6812ee /bgpd | |
parent | [bgpd] Fix peer prefix counts and make it slightly more robust (diff) | |
download | frr-3fff6ffc697e362959de95b6cc292fd6fb7502a6.tar.xz frr-3fff6ffc697e362959de95b6cc292fd6fb7502a6.zip |
[bgpd] trivial fix for gcc warning
2006-02-05 Paul Jakma <paul.jakma@sun.com>
* bgp_aspath.c: (aspath_gettoken) fix gcc warning about
possible uninitialised usage.
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/ChangeLog | 2 | ||||
-rw-r--r-- | bgpd/bgp_aspath.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index 8e2a397dc..6101b50e8 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 <paul.jakma@sun.com> diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index 2cc5ed359..9fce6e314 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; |