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 001e5c45f017c20dfdc2290374a7297b3fc02a21..6fdd2116601191ff08297cd7759a809a86c03fb8 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;
                }