From 2780ba06c794802707727db2285b3bd6b8b99ed9 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Thu, 29 Oct 2015 18:58:18 +0000 Subject: [PATCH] Avoid passing an uninitialized 'i'. Currently nothing was depending on it anyhow. Coverity CID: 1331562 --- sys/net/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/route.c b/sys/net/route.c index 2bcd4ed87131..c9c7bba142a0 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -845,7 +845,7 @@ rt_foreach_fib_walk(int af, rt_setwarg_t *setwa_f, rt_walktree_f_t *wa_f, if (rnh == NULL) continue; if (setwa_f != NULL) - setwa_f(rnh, fibnum, i, arg); + setwa_f(rnh, fibnum, AF_UNSPEC, arg); RADIX_NODE_HEAD_LOCK(rnh); rnh->rnh_walktree(rnh, (walktree_f_t *)wa_f, arg);