summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdadm.c1
-rw-r--r--util.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index 1bdc55d..47ea2fe 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -94,6 +94,7 @@ int main(int argc, char *argv[])
ident.devices=0;
ident.spare_group = NULL;
ident.autof = 0;
+ ident.st = NULL;
while ((option_index = -1) ,
(opt=getopt_long(argc, argv,
diff --git a/util.c b/util.c
index 010764e..04a689b 100644
--- a/util.c
+++ b/util.c
@@ -572,8 +572,8 @@ struct supertype *guess_super(int fd)
besttime < info.array.ctime) {
bestsuper = i;
besttime = info.array.ctime;
- st->ss = NULL;
}
+ st->ss = NULL;
free(sbp);
}
}