projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d22042d
)
Fix garbage characters in json output caused by time_buf being uninitialized
author
Josh Sinykin
<josh.sinykin@broadcom.com>
Mon, 19 Sep 2016 03:25:02 +0000
(
04:25
+0100)
committer
Jens Axboe
<axboe@fb.com>
Mon, 19 Sep 2016 14:27:53 +0000
(08:27 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
stat.c
patch
|
blob
|
blame
|
history
diff --git
a/stat.c
b/stat.c
index 74c2686c660ca33b76b12e85eefab3a68e933e7c..c9148ad7a73b321b08751353326e453581fbac59 100644
(file)
--- 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));