summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast/pol
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-02-16 15:50:03 +0100
committerSander Vrijders <sander@ouroboros.rocks>2020-02-16 18:27:26 +0100
commit52e44a55d3b12819a79566067ff0361854da5002 (patch)
tree6651e9022e16a1d0281d0e9c268bd185f335562a /src/ipcpd/unicast/pol
parentb46ba7bb7405c3b5a85f4203f816e623a5edb2d7 (diff)
downloadouroboros-52e44a55d3b12819a79566067ff0361854da5002.tar.gz
ouroboros-52e44a55d3b12819a79566067ff0361854da5002.zip
ipcpd: Fix uninitialized variable in graph
During refactor a variable initialization was removed. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/unicast/pol')
-rw-r--r--src/ipcpd/unicast/pol/graph.c2
1 files changed, 1 insertions, 1 deletions
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;