svn commit: r225085 - stable/7/usr.sbin/mfiutil
John Baldwin
jhb at FreeBSD.org
Mon Aug 22 18:58:09 UTC 2011
Author: jhb
Date: Mon Aug 22 18:58:08 2011
New Revision: 225085
URL: http://svn.freebsd.org/changeset/base/225085
Log:
MFC 224495:
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.
Modified:
stable/7/usr.sbin/mfiutil/mfi_show.c
Directory Properties:
stable/7/usr.sbin/mfiutil/ (props changed)
Modified: stable/7/usr.sbin/mfiutil/mfi_show.c
==============================================================================
--- stable/7/usr.sbin/mfiutil/mfi_show.c Mon Aug 22 18:57:59 2011 (r225084)
+++ stable/7/usr.sbin/mfiutil/mfi_show.c Mon Aug 22 18:58:08 2011 (r225085)
@@ -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-stable-7
mailing list