]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
Always initialise a struct super_type to zero
[thirdparty/mdadm.git] / super0.c
index b0a625bde57cd4e4a34fcc85e5d000f062105e7a..1ca35368bb4f92ca8d5b4d2b7d728bef60b11588 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -869,6 +869,7 @@ static struct supertype *match_metadata_desc0(char *arg)
        struct supertype *st = malloc(sizeof(*st));
        if (!st) return st;
 
+       memset(st, 0, sizeof(*st));
        st->ss = &super0;
        st->info = NULL;
        st->minor_version = 90;