aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api-test
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-11-17 11:36:59 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2016-11-17 20:51:43 +0000
commit75665d3ea133f9978bb31ad6877166872cad1139 (patch)
treeb2e75befddb8c763616ee7b70bd6f79fc840fd5a /vpp-api-test
parent0bd36eac4758f785ae9e2c006894b6935f0f70f2 (diff)
Fix coverity warnings, VPP-486
Change-Id: If98e5e00eede8f2aa9f17517c726b337c98e5467 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp-api-test')
-rw-r--r--vpp-api-test/vat/api_format.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/vpp-api-test/vat/api_format.c b/vpp-api-test/vat/api_format.c
index c1701476b31..aa875256679 100644
--- a/vpp-api-test/vat/api_format.c
+++ b/vpp-api-test/vat/api_format.c
@@ -6492,6 +6492,9 @@ api_mpls_ethernet_add_del_tunnel (vat_main_t * vam)
u32 tx_sw_if_index;
int tx_sw_if_index_set = 0;
+ /* Shut up coverity */
+ memset (dst_mac_address, 0, sizeof (dst_mac_address));
+
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
if (unformat (i, "vrf %d", &inner_vrf_id))
@@ -10581,6 +10584,9 @@ api_create_vhost_user_if (vat_main_t * vam)
u8 hwaddr[6];
u8 use_custom_mac = 0;
+ /* Shut up coverity */
+ memset (hwaddr, 0, sizeof (hwaddr));
+
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
if (unformat (i, "socket %s", &file_name))
@@ -16112,6 +16118,10 @@ api_l2_interface_pbb_tag_rewrite (vat_main_t * vam)
u32 sid = ~0;
u32 tmp;
+ /* Shut up coverity */
+ memset (dmac, 0, sizeof (dmac));
+ memset (smac, 0, sizeof (smac));
+
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
{
if (unformat (i, "%U", unformat_sw_if_index, vam, &sw_if_index))