summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-03-04 20:17:22 +0100
committerJens Axboe <jens.axboe@oracle.com>2009-03-04 20:17:22 +0100
commit4e6ea2f1e9b7da6d7d1057670fcc19f063e46fd4 (patch)
tree7778e28dc283d1be0c8a53811d8d662e440c6225
parentb5696bfc783ea3a762a73fa62d8b1a8d1fa67840 (diff)
downloadfio-4e6ea2f1e9b7da6d7d1057670fcc19f063e46fd4.tar.gz
fio-4e6ea2f1e9b7da6d7d1057670fcc19f063e46fd4.tar.bz2
Need to clear ->files_size when ->files is cleared
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.c b/init.c
index 001e5c45..6fdd2116 100644
--- 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;
}