iolog_seekto: initialize struct timing_closure before using.
Coverity CID 249977
This commit is contained in:
@@ -129,6 +129,9 @@ iolog_seekto(int iolog_dir_fd, const char *iolog_path,
|
|||||||
debug_return_bool(true);
|
debug_return_bool(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&timing, 0, sizeof(timing));
|
||||||
|
timing.decimal = ".";
|
||||||
|
|
||||||
/* Parse timing file until we reach the target point. */
|
/* Parse timing file until we reach the target point. */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
switch (iolog_read_timing_record(&iolog_files[IOFD_TIMING], &timing)) {
|
switch (iolog_read_timing_record(&iolog_files[IOFD_TIMING], &timing)) {
|
||||||
|
Reference in New Issue
Block a user