Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2012 19:03:04 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239518 - stable/9/usr.sbin/ctladm
Message-ID:  <201208211903.q7LJ34uo088017@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Aug 21 19:03:04 2012
New Revision: 239518
URL: http://svn.freebsd.org/changeset/base/239518

Log:
  MFC r239074:
  
  In usr.sbin/ctladm/ctladm.c, function cctl_error_inject(), initialize
  the 'retval' variable to zero, to avoid returning garbage in several
  cases.

Modified:
  stable/9/usr.sbin/ctladm/ctladm.c
Directory Properties:
  stable/9/usr.sbin/ctladm/   (props changed)

Modified: stable/9/usr.sbin/ctladm/ctladm.c
==============================================================================
--- stable/9/usr.sbin/ctladm/ctladm.c	Tue Aug 21 18:55:19 2012	(r239517)
+++ stable/9/usr.sbin/ctladm/ctladm.c	Tue Aug 21 19:03:04 2012	(r239518)
@@ -1026,7 +1026,7 @@ static int
 cctl_error_inject(int fd, uint32_t target, uint32_t lun, int argc, char **argv, 
 		  char *combinedopt)
 {
-	int retval;
+	int retval = 0;
 	struct ctl_error_desc err_desc;
 	uint64_t lba = 0;
 	uint32_t len = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208211903.q7LJ34uo088017>