Commit b8fb6d89 authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

Useless initialization (do_filter do the job).

parent 98ce8298
......@@ -249,7 +249,7 @@ check_xroutes(int send_updates)
{
int i, j, metric, export, change = 0, rc;
struct kernel_route *routes;
struct filter_result filter_result = {0};
struct filter_result filter_result;
int numroutes, numaddresses;
static int maxroutes = 8;
const int maxmaxroutes = 16 * 1024;
......@@ -286,7 +286,6 @@ check_xroutes(int send_updates)
/* Apply filter to kernel routes (e.g. change the source prefix). */
for(i = numaddresses; i < numroutes; i++) {
filter_result.src_prefix = NULL;
redistribute_filter(routes[i].prefix, routes[i].plen,
routes[i].src_prefix, routes[i].src_plen,
routes[i].ifindex, routes[i].proto,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment