Avoid passing an uninitialized 'i'. Currently nothing was depending on it

anyhow.

Coverity CID:	1331562
This commit is contained in:
Bryan Drewery 2015-10-29 18:58:18 +00:00
parent b1585b5a06
commit 2780ba06c7

View File

@ -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);