fix wrong malloc size for ignore_error buffer
[fio.git] / 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 bssplit));
+       error = calloc(4, sizeof(int));
 
        i = 0;
        while ((fname = strsep(&str, ":")) != NULL) {