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:
e4db5bd
)
t/io_uring: terminate buf[] file depth string
author
Jens Axboe
<axboe@kernel.dk>
Tue, 15 Jan 2019 20:52:14 +0000
(13:52 -0700)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 15 Jan 2019 20:52:14 +0000
(13:52 -0700)
Prevents garbage print for !s->nr_files (do_nop = 1).
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c
patch
|
blob
|
blame
|
history
diff --git
a/t/io_uring.c
b/t/io_uring.c
index 78b92685316cb7bc751cd3b49295be388f8a5807..dd510be5611a6365992fe228cb69932ae8e53844 100644
(file)
--- 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];