]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mapfile.c
FIX: resolve make everything compilation error
[thirdparty/mdadm.git] / mapfile.c
index 0bfecd05be9a7d504b3ffccb70dceb18e0f01b3f..9e2c89368c9cc2a0f997cbbc35e6165fa2dafe0d 100644 (file)
--- a/mapfile.c
+++ b/mapfile.c
@@ -246,6 +246,7 @@ int map_update(struct map_ent **mpp, int devnum, char *metadata,
                        memcpy(mp->uuid, uuid, 16);
                        free(mp->path);
                        mp->path = path ? strdup(path) : NULL;
+                       mp->bad = 0;
                        break;
                }
        if (!mp)