This crept in as part of the MRIB improvements and I missed the compiler
warning between other noise. Unfortunately, printing an uninitialised
variable can in fact make zebra crash, so this is not trivial.
Fixes: 3b02fe8 ("zebra: add "show ip rpf" to get result of RPF lookup")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
RNODE_FOREACH_RIB (rn, rib)
{
- const char *mcast_info;
+ const char *mcast_info = "";
if (mcast)
{
rib_table_info_t *info = rn->table->info;
? " using Multicast RIB"
: " using Unicast RIB";
}
- else
- mcast_info = "";
vty_out (vty, "Routing entry for %s/%d%s%s",
inet_ntoa (rn->p.u.prefix4), rn->p.prefixlen, mcast_info,