fio: replace malloc+memset with calloc
[fio.git] / init.c
diff --git a/init.c b/init.c
index 48121f1496c2d7d6e1b2e57b9f16bf5f5c0768b3..437406ecaea5aeb31ab368cd680d1fa0989726bf 100644 (file)
--- a/init.c
+++ b/init.c
@@ -1946,8 +1946,7 @@ static int __parse_jobs_ini(struct thread_data *td,
         * it's really 256 + small bit, 280 should suffice
         */
        if (!nested) {
-               name = malloc(280);
-               memset(name, 0, 280);
+               name = calloc(1, 280);
        }
 
        opts = NULL;