]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - config.c
Fix parsing of /dev/md/N in is_standard
[thirdparty/mdadm.git] / config.c
index 7383e193549f42b89c0af269b39ebfa5e45347c7..08a8ed1aae71a650830615197f240eeb4836b3b6 100644 (file)
--- a/config.c
+++ b/config.c
@@ -274,6 +274,7 @@ void arrayline(char *line)
        mis.devname = NULL;
        mis.spare_group = NULL;
        mis.autof = 0;
+       mis.next = NULL;
 
        for (w=dl_next(line); w!=line; w=dl_next(w)) {
                if (w[0] == '/') {
@@ -344,7 +345,7 @@ void arrayline(char *line)
                        else if (strcasecmp(w+5,"yes")==0 || strcasecmp(w+5,"md")==0)
                                mis.autof = -1;
                        else {
-                               /* There might be digits, and maybe a hypen, at the end */
+                               /* There might be digits, and maybe a hyphen, at the end */
                                char *e = w+5 + strlen(w+5);
                                int num = 4;
                                int len;