Clear f on error get_next_file_rr()
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index fc49bd325879f01d63c53efaaff25cc0e34e63e2..1e9018c4f6ee85bc5362aea312b9b2ec15a15978 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -686,6 +686,7 @@ static struct fio_file *get_next_file_rr(struct thread_data *td, int goodf,
                        if (err) {
                                dprint(FD_FILE, "error %d on open of %s\n",
                                        err, f->file_name);
+                               f = NULL;
                                continue;
                        }
                        opened = 1;