aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-08-18 12:02:53 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2022-08-18 12:03:25 +0000
commitcc488fc766cfbafbe52471a2fa0c8b7aa785ff86 (patch)
tree2f431454ccdbe74a2a3f84947fcdfe4bfa727602
parent6e4a56e65697999d2f9e2fd539b9e53a0d420266 (diff)
nsh: fix coverity 249169
Zero-initialize the temporary struct on stack. Type: fix Change-Id: I651f87deeb79c6c073d5c510435fa268893a3b0e Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
-rw-r--r--src/plugins/nsh/nsh_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nsh/nsh_api.c b/src/plugins/nsh/nsh_api.c
index 4a9eab4daec..670a4ee0b03 100644
--- a/src/plugins/nsh/nsh_api.c
+++ b/src/plugins/nsh/nsh_api.c
@@ -550,7 +550,7 @@ static void vl_api_nsh_add_del_entry_t_handler
{
vl_api_nsh_add_del_entry_reply_t *rmp;
int rv;
- nsh_add_del_entry_args_t _a, *a = &_a;
+ nsh_add_del_entry_args_t _a = { 0 }, *a = &_a;
u32 entry_index = ~0;
u8 tlvs_len = 0;
u8 *data = 0;