projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fio: replace malloc+memset with calloc
[fio.git]
/
t
/
lfsr-test.c
diff --git
a/t/lfsr-test.c
b/t/lfsr-test.c
index 4b255e19bb07445bfe9564807676123b06cd75af..632de38313401a468bddd0bf27476f8455297ef8 100644
(file)
--- a/
t/lfsr-test.c
+++ b/
t/lfsr-test.c
@@
-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;