mirror of https://github.com/FRRouting/frr.git
babeld: Prevent compiler warning about uninited value for n
the variable n, when used must have been set via the find_route_slot but the compiler in question is probably getting confused with the multiple levels of indention. Just get around the whole problem by setting n = 0 and being done with it. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
2beaba8de9
commit
2db57f5639
|
@ -166,7 +166,7 @@ resize_route_table(int new_slots)
|
|||
static struct babel_route *
|
||||
insert_route(struct babel_route *route)
|
||||
{
|
||||
int i, n;
|
||||
int i, n = 0;
|
||||
|
||||
assert(!route->installed);
|
||||
|
||||
|
|
Loading…
Reference in New Issue