iolog_seekto: initialize struct timing_closure before using.

Coverity CID 249977
This commit is contained in:
Todd C. Miller
2022-02-23 20:47:18 -07:00
parent 2315c0b3bb
commit 8290a1e57a

View File

@@ -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)) {