summaryrefslogtreecommitdiff
path: root/bgpd/bgp_aspath.c
diff options
context:
space:
mode:
authorpaul <paul>2006-02-05 17:55:35 +0000
committerpaul <paul>2006-02-05 17:55:35 +0000
commit3fff6ffc697e362959de95b6cc292fd6fb7502a6 (patch)
treef9ac1da3796e48c1aa83ed3d5f9dd7594b6812ee /bgpd/bgp_aspath.c
parent902212c3f3df5198a6cdf2c95e4686790e437f6f (diff)
[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/bgp_aspath.c')
-rw-r--r--bgpd/bgp_aspath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index 2cc5ed35..9fce6e31 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;