filesetup: Initialize all members of struct fio_file
[fio.git] / filesetup.c
index dd8f6eb2b0f67660d56582142f81ba64a98a825d..1a187ff2648d35c933740852751cd147c2ec0a36 100644 (file)
@@ -1481,7 +1481,7 @@ static struct fio_file *alloc_new_file(struct thread_data *td)
        if (td_ioengine_flagged(td, FIO_NOFILEHASH))
                f = calloc(1, sizeof(*f));
        else
-               f = smalloc(sizeof(*f));
+               f = scalloc(1, sizeof(*f));
        if (!f) {
                assert(0);
                return NULL;