Silence 'io_u might be used uninitialized' warning
authorJens Axboe <axboe@fb.com>
Mon, 3 Mar 2014 20:55:32 +0000 (13:55 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 3 Mar 2014 20:55:32 +0000 (13:55 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
io_u.c

diff --git a/io_u.c b/io_u.c
index 75b23eb47d9091c58d3df19b2f6def826d3c3836..8e27708731c7290abc4e468000ec045d856e1241 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -1297,7 +1297,7 @@ int queue_full(struct thread_data *td)
 
 struct io_u *__get_io_u(struct thread_data *td)
 {
-       struct io_u *io_u;
+       struct io_u *io_u = NULL;
 
        td_io_u_lock(td);