X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=c9148ad7a73b321b08751353326e453581fbac59;hp=74c2686c660ca33b76b12e85eefab3a68e933e7c;hb=33477b4b5f61c2ba57bc3346b8968d9be8b56fc4;hpb=d22042d2117b78e16b06bab0880422c417007d37 diff --git a/stat.c b/stat.c index 74c2686c..c9148ad7 100644 --- a/stat.c +++ b/stat.c @@ -669,6 +669,8 @@ static void show_thread_status_normal(struct thread_stat *ts, if (!ddir_rw_sum(ts->io_bytes) && !ddir_rw_sum(ts->total_io_u)) return; + + memset(time_buf, 0, sizeof(time_buf)); time(&time_p); os_ctime_r((const time_t *) &time_p, time_buf, sizeof(time_buf));