svn commit: r239516 - stable/9/sbin/camcontrol
Dimitry Andric
dim at FreeBSD.org
Tue Aug 21 18:45:56 UTC 2012
Author: dim
Date: Tue Aug 21 18:45:55 2012
New Revision: 239516
URL: http://svn.freebsd.org/changeset/base/239516
Log:
MFC r239059:
In sbin/camcontrol/camcontrol.c, function smpcmd(), initialize the
'error' variable to zero, to avoid returning garbage in several cases.
Modified:
stable/9/sbin/camcontrol/camcontrol.c
Directory Properties:
stable/9/sbin/camcontrol/ (props changed)
Modified: stable/9/sbin/camcontrol/camcontrol.c
==============================================================================
--- stable/9/sbin/camcontrol/camcontrol.c Tue Aug 21 18:41:38 2012 (r239515)
+++ stable/9/sbin/camcontrol/camcontrol.c Tue Aug 21 18:45:55 2012 (r239516)
@@ -4463,7 +4463,7 @@ static int
smpcmd(struct cam_device *device, int argc, char **argv, char *combinedopt,
int retry_count, int timeout)
{
- int c, error;
+ int c, error = 0;
union ccb *ccb;
uint8_t *smp_request = NULL, *smp_response = NULL;
int request_size = 0, response_size = 0;
More information about the svn-src-stable
mailing list