Always zero a struct ddf_super on allocation.

This commit is contained in:
Neil Brown 2008-07-12 20:27:36 +10:00
parent ef60947720
commit 6264b43733
1 changed files with 1 additions and 0 deletions

View File

@ -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 */