summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_aspath.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r--bgpd/bgp_aspath.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c
index f4d7c4aad..031f71c30 100644
--- a/bgpd/bgp_aspath.c
+++ b/bgpd/bgp_aspath.c
@@ -1045,20 +1045,15 @@ struct aspath *
aspath_aggregate (struct aspath *as1, struct aspath *as2)
{
int i;
- int minlen;
- int match;
+ int minlen = 0;
+ int match = 0;
int from;
struct assegment *seg1 = as1->segments;
struct assegment *seg2 = as2->segments;
struct aspath *aspath = NULL;
- struct assegment *asset;
+ struct assegment *asset = NULL;
struct assegment *prevseg = NULL;
- match = 0;
- minlen = 0;
- aspath = NULL;
- asset = NULL;
-
/* First of all check common leading sequence. */
while (seg1 && seg2)
{