From 8290a1e57aafad8544cb5400dab74e43463b35ec Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 23 Feb 2022 20:47:18 -0700 Subject: [PATCH] iolog_seekto: initialize struct timing_closure before using. Coverity CID 249977 --- logsrvd/logsrv_util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/logsrvd/logsrv_util.c b/logsrvd/logsrv_util.c index 3ad0e5d4b..49c02bed6 100644 --- a/logsrvd/logsrv_util.c +++ b/logsrvd/logsrv_util.c @@ -129,6 +129,9 @@ iolog_seekto(int iolog_dir_fd, const char *iolog_path, debug_return_bool(true); } + memset(&timing, 0, sizeof(timing)); + timing.decimal = "."; + /* Parse timing file until we reach the target point. */ for (;;) { switch (iolog_read_timing_record(&iolog_files[IOFD_TIMING], &timing)) {