diff options
author | Neil Brown <neilb@suse.de> | 2007-05-22 09:46:29 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-05-22 09:46:29 +1000 |
commit | a328c097ff8016342ae336af92cabbc32bc8d1fd (patch) | |
tree | af87f05f5553c14ee544aa33e9b2265935fa81d3 /Detail.c | |
parent | fffdbe5ed0ac135000522e5e74c6583d93618c9c (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |