summaryrefslogtreecommitdiff
path: root/Detail.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-05-22 09:46:29 +1000
committerNeil Brown <neilb@suse.de>2007-05-22 09:46:29 +1000
commita328c097ff8016342ae336af92cabbc32bc8d1fd (patch)
treeaf87f05f5553c14ee544aa33e9b2265935fa81d3 /Detail.c
parentfffdbe5ed0ac135000522e5e74c6583d93618c9c (diff)
downloadmdadm-a328c097ff8016342ae336af92cabbc32bc8d1fd.tar.gz
Fix compile error in Detail.c
'avail' is undefined if '--export', so make sure we don't try to use it.
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Detail.c b/Detail.c
index 0ed81d1..7e14163 100644
--- 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;
}