Signed-off-by: Hubert Kario <kario@xxxxxxxxxx> --- scrub.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scrub.c b/scrub.c index 9dca5f6..630a1bf 100644 --- a/scrub.c +++ b/scrub.c @@ -1010,7 +1010,7 @@ static int scrub_fs_info(int fd, char *path, if (!fi_args->num_devices) return 0; - di_args = *di_ret = malloc(fi_args->num_devices * sizeof(*di_args)); + di_args = *di_ret = calloc(fi_args->num_devices, sizeof(*di_args)); if (!di_args) return -errno; -- 1.7.9 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
