From ac21bfabdedd0a5e734b8816d6b09ea5c0c1452d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 15 Jan 2019 13:52:14 -0700 Subject: [PATCH] t/io_uring: terminate buf[] file depth string Prevents garbage print for !s->nr_files (do_nop = 1). Signed-off-by: Jens Axboe --- t/io_uring.c | 1 + 1 file changed, 1 insertion(+) 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]; -- 2.25.1