From 2db57f563987d7b1f3fda58974f15e33a62b1b83 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 13 Oct 2021 14:34:08 -0400 Subject: [PATCH] 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 --- babeld/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);