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:
Donald Sharp 2021-10-13 14:34:08 -04:00
parent 2beaba8de9
commit 2db57f5639
1 changed files with 1 additions and 1 deletions

View File

@ -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);