]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[bgpd] trivial fix for gcc warning
authorpaul <paul>
Sun, 5 Feb 2006 17:55:35 +0000 (17:55 +0000)
committerpaul <paul>
Sun, 5 Feb 2006 17:55:35 +0000 (17:55 +0000)
2006-02-05 Paul Jakma <paul.jakma@sun.com>

* bgp_aspath.c: (aspath_gettoken) fix gcc warning about
  possible uninitialised usage.

bgpd/ChangeLog
bgpd/bgp_aspath.c

index 8e2a397dcdab6c1ce96e61f255fc05135b4f5397..6101b50e8d609d297358684c78e220018faae2d2 100644 (file)
@@ -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>
 
index 2cc5ed3592c05cd18cc1938b0e8ca4f8387c62f3..9fce6e3144c87f8c13f56e72de20e325580f1f6e 100644 (file)
@@ -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;