Need to clear ->files_size when ->files is cleared
authorJens Axboe <jens.axboe@oracle.com>
Wed, 4 Mar 2009 19:17:22 +0000 (20:17 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 4 Mar 2009 19:17:22 +0000 (20:17 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index 001e5c4..6fdd211 100644 (file)
--- a/init.c
+++ b/init.c
@@ -585,6 +585,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
                if (file_alloced) {
                        td_new->o.filename = NULL;
                        td_new->files_index = 0;
+                       td_new->files_size = 0;
                        td_new->files = NULL;
                }