From 6264b43733127177d3fab4492a2da75938e7e881 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Sat, 12 Jul 2008 20:27:36 +1000 Subject: [PATCH] Always zero a struct ddf_super on allocation. --- super-ddf.c | 1 + 1 file changed, 1 insertion(+) 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 */