summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-05-08 08:16:06 -0400
committerFlorin Coras <florin.coras@gmail.com>2020-05-08 14:35:33 +0000
commit13f64ce2272539d97b8c499e8e298a053fb3c9e2 (patch)
treebdc8faaf10f61f78c81faab135198c31cd171030 /src
parentc5c788bfa1984071d5721d378b838d029fc7b680 (diff)
ethernet: fix coverity warning
Type: fix Ticket: VPP-1837 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I20daa023eed50f8b42e8dc2d17e47a54aa16ae31
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ethernet/p2p_ethernet_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ethernet/p2p_ethernet_api.c b/src/vnet/ethernet/p2p_ethernet_api.c
index 2c75a51d2f8..8321f8db5d3 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];
if (!vnet_sw_if_index_is_api_valid (parent_if_index))