aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2022-08-17 13:48:11 +0000
committerBeno�t Ganne <bganne@cisco.com>2022-08-23 15:10:49 +0000
commit174f5c850253bf47f22ce8272d3e321fdf6e5144 (patch)
treeb901c1af879f9503bcd54e8f843bcffa6709d4ef
parentaac685640aba01867ed54c1d2d2a5c64e4a7b656 (diff)
vppinfra: fix coverity 249217
Zero-initialize the temporary struct. Type: fix Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com> Change-Id: I8d73feae427a17470c47d1551ba7078213b589fc
-rw-r--r--src/vppinfra/elog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/elog.c b/src/vppinfra/elog.c
index ddc09a37d72..a0e5712aaab 100644
--- 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);