aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-09-16 14:49:36 -0700
committerFlorin Coras <fcoras@cisco.com>2018-09-16 14:52:57 -0700
commitb023d59d4c67a69e559f265aff3d103207b247ce (patch)
tree1251ed5ae80c8f5ca56f195edb3a8edece543e36
parent64a80f2b790b837b0115ab1c15a73fc77119d354 (diff)
vmxnet3: fix clang initialization error
Change-Id: I2958bd3bdec98d3e380a8ff8f970563020e28afd Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--src/plugins/vmxnet3/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/vmxnet3/cli.c b/src/plugins/vmxnet3/cli.c
index 3e3ab9d74f7..3a7e5d9ee65 100644
--- a/src/plugins/vmxnet3/cli.c
+++ b/src/plugins/vmxnet3/cli.c
@@ -31,13 +31,14 @@ vmxnet3_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
vlib_cli_command_t * cmd)
{
unformat_input_t _line_input, *line_input = &_line_input;
- vmxnet3_create_if_args_t args = { 0 };
+ vmxnet3_create_if_args_t args;
u32 tmp;
/* Get a line of input. */
if (!unformat_user (input, unformat_line_input, line_input))
return 0;
+ memset (&args, 0, sizeof (args));
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
if (unformat (line_input, "%U", unformat_vlib_pci_addr, &args.addr))