diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-10-13 14:34:08 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-10-13 14:34:08 -0400 |
| commit | 2db57f563987d7b1f3fda58974f15e33a62b1b83 (patch) | |
| tree | 509c61fdbbd0d6201af4fa46b4ac9800ca4dc277 /babeld | |
| parent | 2beaba8de9630b3bff2abdf1381295667d051302 (diff) | |
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>
Diffstat (limited to 'babeld')
| -rw-r--r-- | babeld/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/route.c b/babeld/route.c index dfd0bfab89..8dd1e40431 100644 --- a/babeld/route.c +++ b/babeld/route.c @@ -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); |
