projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stats: Add hint information to per priority level stats
[fio.git]
/
engines
/
libhdfs.c
diff --git
a/engines/libhdfs.c
b/engines/libhdfs.c
index f20e45cac1c466dcd659071dd5fb5ea9936727c0..d0a268408435418f261616a734f335b03aa91286 100644
(file)
--- a/
engines/libhdfs.c
+++ b/
engines/libhdfs.c
@@
-315,8
+315,7
@@
static int fio_hdfsio_setup(struct thread_data *td)
uint64_t file_size, total_file_size;
if (!td->io_ops_data) {
- hd = malloc(sizeof(*hd));
- memset(hd, 0, sizeof(*hd));
+ hd = calloc(1, sizeof(*hd));
hd->curr_file_id = -1;