]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix compile error in Detail.c
authorNeil Brown <neilb@suse.de>
Mon, 21 May 2007 23:46:29 +0000 (09:46 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 21 May 2007 23:46:29 +0000 (09:46 +1000)
'avail' is undefined if '--export', so make sure we don't try to use
it.

Detail.c

index 0ed81d121fc9e01f39439f3faeb1d9301c835826..7e141636bcc9450d7b8e566081d7622a725fb0a9 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -377,12 +377,12 @@ This is pretty boring
 
        if (brief > 1 && devices) printf("\n   devices=%s", devices);
        if (brief) printf("\n");
-out:
        if (test &&
            !enough(array.level, array.raid_disks, array.layout,
                    1, avail, avail_disks))
                rv = 2;
 
+out:
        close(fd);
        return rv;
 }