Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
000a4eb
)
nsh: fix coverity 249201
02/37002/3
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Tue, 23 Aug 2022 16:54:53 +0000
(16:54 +0000)
committer
Andrew Yourtchenko
<ayourtch@gmail.com>
Fri, 26 Aug 2022 13:11:14 +0000
(13:11 +0000)
Zero-initialize the temporary struct, else a->map.adj_index is being used unset.
Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: Ia02636ea1e911250d6aa5e413de48e1e09863880
src/plugins/nsh/nsh_api.c
patch
|
blob
|
history
diff --git
a/src/plugins/nsh/nsh_api.c
b/src/plugins/nsh/nsh_api.c
index
670a4ee
..
da6650d
100644
(file)
--- a/
src/plugins/nsh/nsh_api.c
+++ b/
src/plugins/nsh/nsh_api.c
@@
-169,7
+169,7
@@
vl_api_nsh_add_del_map_t_handler (vl_api_nsh_add_del_map_t * mp)
{
vl_api_nsh_add_del_map_reply_t *rmp;
int rv;
- nsh_add_del_map_args_t _a, *a = &_a;
+ nsh_add_del_map_args_t _a
= { 0 }
, *a = &_a;
u32 map_index = ~0;
a->is_add = mp->is_add;