Remove st->text_version in favour of info->text_version
[thirdparty/mdadm.git] / Assemble.c
index 9c320c2..16f45cd 100644 (file)
@@ -848,7 +848,7 @@ int Assemble(struct supertype *st, char *mddev, int mdfd,
                struct mdinfo *sra;
                if (st->ss->external) {
                        char ver[100];
                struct mdinfo *sra;
                if (st->ss->external) {
                        char ver[100];
-                       strcat(strcpy(ver, "external:"), st->ss->text_version);
+                       strcat(strcpy(ver, "external:"), info.text_version);
                        sra = sysfs_read(mdfd, 0, 0);
                        if ((vers % 100) < 2 ||
                            sra == NULL ||
                        sra = sysfs_read(mdfd, 0, 0);
                        if ((vers % 100) < 2 ||
                            sra == NULL ||