Always zero a struct ddf_super on allocation.
This commit is contained in:
parent
ef60947720
commit
6264b43733
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue