projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix wrong malloc size for ignore_error buffer
[fio.git]
/
options.c
diff --git
a/options.c
b/options.c
index 2daa983e0d9b2ef1002bd10ed6156fe8e5ba486f..864e778434f4538de62fd4746456b7f9b1094281 100644
(file)
--- a/
options.c
+++ b/
options.c
@@
-282,7
+282,7
@@
static int ignore_error_type(struct thread_data *td, int etype, char *str)
}
td->o.ignore_error_nr[etype] = 4;
- error =
malloc(4 * sizeof(struct bsspli
t));
+ error =
calloc(4, sizeof(in
t));
i = 0;
while ((fname = strsep(&str, ":")) != NULL) {