From: Neil Brown Date: Mon, 21 May 2007 23:46:29 +0000 (+1000) Subject: Fix compile error in Detail.c X-Git-Tag: mdadm-2.6.3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a328c097ff8016342ae336af92cabbc32bc8d1fd;p=thirdparty%2Fmdadm.git Fix compile error in Detail.c 'avail' is undefined if '--export', so make sure we don't try to use it. --- diff --git a/Detail.c b/Detail.c index 0ed81d12..7e141636 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; }