]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - config.c
Assorted Fixes for multiple bugs.
[thirdparty/mdadm.git] / config.c
index 08a8ed1aae71a650830615197f240eeb4836b3b6..40f33ac59afd90d79e9abbf15ab1e2dbdeab1dca 100644 (file)
--- a/config.c
+++ b/config.c
@@ -275,6 +275,8 @@ void arrayline(char *line)
        mis.spare_group = NULL;
        mis.autof = 0;
        mis.next = NULL;
+       mis.st = NULL;
+       mis.bitmap_fd = -1;
 
        for (w=dl_next(line); w!=line; w=dl_next(w)) {
                if (w[0] == '/') {
@@ -293,7 +295,7 @@ void arrayline(char *line)
                                        fprintf(stderr, Name ": bad uuid: %s\n", w);
                        }
                } else if (strncasecmp(w, "super-minor=", 12)==0 ) {
-                       if (mis.super_minor >= 0)
+                       if (mis.super_minor != UnSet)
                                fprintf(stderr, Name ": only specify super-minor once, %s ignored.\n",
                                        w);
                        else {