From 4cdca2fc20f2da23ece3b3ae711bcb53ef767799 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Fri, 8 May 2020 08:16:06 -0400 Subject: ethernet: fix coverity warning Type: fix Ticket: VPP-1837 Signed-off-by: Dave Barach Change-Id: I20daa023eed50f8b42e8dc2d17e47a54aa16ae31 (cherry picked from commit 13f64ce2272539d97b8c499e8e298a053fb3c9e2) --- src/vnet/ethernet/p2p_ethernet_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/ethernet/p2p_ethernet_api.c') diff --git a/src/vnet/ethernet/p2p_ethernet_api.c b/src/vnet/ethernet/p2p_ethernet_api.c index 3f537168a8e..74b5e0c8658 100644 --- a/src/vnet/ethernet/p2p_ethernet_api.c +++ b/src/vnet/ethernet/p2p_ethernet_api.c @@ -52,7 +52,7 @@ vl_api_p2p_ethernet_add_t_handler (vl_api_p2p_ethernet_add_t * mp) u32 parent_if_index = htonl (mp->parent_if_index); u32 sub_id = htonl (mp->subif_id); - u32 p2pe_if_index; + u32 p2pe_if_index = ~0; u8 remote_mac[6]; clib_memcpy (remote_mac, mp->remote_mac, 6); -- cgit 1.2.3-korg