Botch edit in files setup
[fio.git] / filesetup.c
index 461f130c15272acc22b2f50a6a714067baea2000..9862c7dba06ae26f8f0a99ecf79cd75a61b8f159 100644 (file)
@@ -720,9 +720,9 @@ int add_file(struct thread_data *td, const char *fname)
                dprint(FD_FILE, "resize file array to %d files\n", new_size);
 
                td->files = realloc(td->files, new_size * sizeof(f));
-               td->files[cur_files] = f;
                td->files_size = new_size;
        }
+       td->files[cur_files] = f;
 
        /*
         * init function, io engine may not be loaded yet