summaryrefslogtreecommitdiffstats
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:36 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:36 +1000
commit6264b43733127177d3fab4492a2da75938e7e881 (patch)
treee13690f71557aa2d766d3fcaa2b86adb067849bf /super-ddf.c
parentef609477203013666d186cf913e93f4a8843b6db (diff)
downloadmdadm-6264b43733127177d3fab4492a2da75938e7e881.tar.gz
mdadm-6264b43733127177d3fab4492a2da75938e7e881.tar.xz
mdadm-6264b43733127177d3fab4492a2da75938e7e881.zip
Always zero a struct ddf_super on allocation.
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/super-ddf.c b/super-ddf.c
index 0c2a013..726ed61 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -1453,6 +1453,7 @@ static int init_super_ddf(struct supertype *st,
struct virtual_disk *vd;
ddf = malloc(sizeof(*ddf));
+ memset(ddf, 0, sizeof(*ddf));
ddf->dlist = NULL; /* no physical disks yet */
ddf->conflist = NULL; /* No virtual disks yet */