]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Detail.c
Create: add error checking for 'write_init_super'.
[thirdparty/mdadm.git] / Detail.c
index e68a88ac155e7716727da95623ea4b23149f093e..375189d0b6332884320018939c54f467b6d1c8ea 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -489,7 +489,7 @@ This is pretty boring
                                if (load_sys(path, vbuf) < 0)
                                        continue;
                                if (strncmp(vbuf, "external:", 9) != 0 ||
-                                   !is_subarray(sra->sys_name+9) ||
+                                   !is_subarray(vbuf+9) ||
                                    strncmp(vbuf+10, sra->sys_name, nlen) != 0 ||
                                    vbuf[10+nlen] != '/')
                                        continue;