From 52e44a55d3b12819a79566067ff0361854da5002 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 16 Feb 2020 15:50:03 +0100 Subject: ipcpd: Fix uninitialized variable in graph During refactor a variable initialization was removed. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/pol/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipcpd/unicast/pol/graph.c b/src/ipcpd/unicast/pol/graph.c index d774e845..e76a47fb 100644 --- a/src/ipcpd/unicast/pol/graph.c +++ b/src/ipcpd/unicast/pol/graph.c @@ -620,7 +620,7 @@ static int graph_routing_table_lfa(struct graph * graph, struct vertex * v; struct edge * e; struct vertex ** nhops; - int i; + int i = 0; int j; int k; -- cgit v1.2.3