Merge branch 'nfs' of https://github.com/panxiao2014/fio
[fio.git] / t / lfsr-test.c
index 4b255e19bb07445bfe9564807676123b06cd75af..632de38313401a468bddd0bf27476f8455297ef8 100644 (file)
@@ -78,8 +78,7 @@ int main(int argc, char *argv[])
        /* Create verification table */
        if (verify) {
                v_size = numbers * sizeof(uint8_t);
-               v = malloc(v_size);
-               memset(v, 0, v_size);
+               v = calloc(1, v_size);
                printf("\nVerification table is %lf KiB\n", (double)(v_size) / 1024);
        }
        v_start = v;