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:
aac6856
)
vppinfra: fix coverity 249217
27/36927/2
author
Andrew Yourtchenko
<ayourtch@gmail.com>
Wed, 17 Aug 2022 13:48:11 +0000
(13:48 +0000)
committer
Beno�t Ganne
<bganne@cisco.com>
Tue, 23 Aug 2022 15:10:49 +0000
(15:10 +0000)
Zero-initialize the temporary struct.
Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I8d73feae427a17470c47d1551ba7078213b589fc
src/vppinfra/elog.c
patch
|
blob
|
history
diff --git
a/src/vppinfra/elog.c
b/src/vppinfra/elog.c
index
ddc09a3
..
a0e5712
100644
(file)
--- a/
src/vppinfra/elog.c
+++ b/
src/vppinfra/elog.c
@@
-1198,7
+1198,7
@@
elog_write_file_not_inline (elog_main_t * em, char *clib_file, int flush_ring)
__clib_export clib_error_t *
elog_read_file_not_inline (elog_main_t * em, char *clib_file)
{
- serialize_main_t m;
+ serialize_main_t m
= { 0 }
;
clib_error_t *error;
error = unserialize_open_clib_file (&m, clib_file);