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 | 6264b43733127177d3fab4492a2da75938e7e881 (patch) | |
tree | e13690f71557aa2d766d3fcaa2b86adb067849bf /super-ddf.c | |
parent | ef609477203013666d186cf913e93f4a8843b6db (diff) | |
download | mdadm-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.c | 1 |
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 */ |