svn commit: r224495 - head/usr.sbin/mfiutil
John Baldwin
jhb at FreeBSD.org
Fri Jul 29 20:24:05 UTC 2011
Author: jhb
Date: Fri Jul 29 20:24:04 2011
New Revision: 224495
URL: http://svn.freebsd.org/changeset/base/224495
Log:
Properly initialize an error variable to avoid returning uninitialized
data when 'show drives' succeeds, often resulting in a failing exit code
even though the command worked fine.
Reviewed by: bz
Approved by: re (kib)
MFC after: 3 days
Modified:
head/usr.sbin/mfiutil/mfi_show.c
Modified: head/usr.sbin/mfiutil/mfi_show.c
==============================================================================
--- head/usr.sbin/mfiutil/mfi_show.c Fri Jul 29 18:38:31 2011 (r224494)
+++ head/usr.sbin/mfiutil/mfi_show.c Fri Jul 29 20:24:04 2011 (r224495)
@@ -533,6 +533,7 @@ show_drives(int ac, char **av)
MFI_DNAME_ES));
printf("\n");
}
+ error = 0;
error:
free(list);
close(fd);
More information about the svn-src-head
mailing list