X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=super-intel.c;h=263e398a89181ed9643cdbf1043f2723a6ae86f6;hp=8ca491bd035e104ef52321745bc97fd5f345dca7;hb=ef609477203013666d186cf913e93f4a8843b6db;hpb=904c1ef77bcb3e3b151f544acf104cd36acdc5f6 diff --git a/super-intel.c b/super-intel.c index 8ca491bd..263e398a 100644 --- a/super-intel.c +++ b/super-intel.c @@ -157,6 +157,7 @@ static struct supertype *match_metadata_desc_imsm(char *arg) return NULL; st = malloc(sizeof(*st)); + memset(st, 0, sizeof(*st)); st->ss = &super_imsm; st->max_devs = IMSM_MAX_DEVICES; st->minor_version = 0; @@ -175,6 +176,7 @@ static struct supertype *match_metadata_desc_imsm_volume(char *arg) return NULL; st = malloc(sizeof(*st)); + memset(st, 0, sizeof(*st)); st->ss = &super_imsm_volume; st->max_devs = IMSM_MAX_DEVICES; st->minor_version = 0;