diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-07 02:19:05 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-05-19 16:42:26 +0200 |
commit | 18f1dc06c59189a2486502560fb95f02d21998ce (patch) | |
tree | 59d4fd415d1361034b570baa5d7d480c8bc051eb /bgpd/bgp_aspath.c | |
parent | zebra: Clean up some small static analysis warnings (diff) | |
download | frr-18f1dc06c59189a2486502560fb95f02d21998ce.tar.xz frr-18f1dc06c59189a2486502560fb95f02d21998ce.zip |
bgpd: Clean up some static analysis warnings
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r-- | bgpd/bgp_aspath.c | 11 |
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) { |