From: Jens Axboe Date: Tue, 15 Jan 2019 20:52:14 +0000 (-0700) Subject: t/io_uring: terminate buf[] file depth string X-Git-Tag: fio-3.13~18 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=ac21bfabdedd0a5e734b8816d6b09ea5c0c1452d t/io_uring: terminate buf[] file depth string Prevents garbage print for !s->nr_files (do_nop = 1). Signed-off-by: Jens Axboe --- diff --git a/t/io_uring.c b/t/io_uring.c index 78b92685..dd510be5 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -475,6 +475,7 @@ static void file_depths(char *buf) char *p; int i; + buf[0] = '\0'; p = buf; for (i = 0; i < s->nr_files; i++) { struct file *f = &s->files[i];