diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:36 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:36 +1000 |
commit | ef609477203013666d186cf913e93f4a8843b6db (patch) | |
tree | 527f675f416c53dbc5e031d634573d6a9e89fad7 /super-intel.c | |
parent | 904c1ef77bcb3e3b151f544acf104cd36acdc5f6 (diff) | |
download | mdadm-ef609477203013666d186cf913e93f4a8843b6db.tar.gz mdadm-ef609477203013666d186cf913e93f4a8843b6db.tar.xz mdadm-ef609477203013666d186cf913e93f4a8843b6db.zip |
Always initialise a struct super_type to zero
Diffstat (limited to 'super-intel.c')
-rw-r--r-- | super-intel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/super-intel.c b/super-intel.c index 8ca491b..263e398 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; |