Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jun 2019 02:06:32 +0000 (UTC)
From:      Chuck Tuffli <chuck@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r348824 - head/usr.sbin/camdd
Message-ID:  <201906090206.x5926W30008686@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: chuck
Date: Sun Jun  9 02:06:31 2019
New Revision: 348824
URL: https://svnweb.freebsd.org/changeset/base/348824

Log:
  Fix uninitialized variable in camdd
  
  gcc  builds were failing because of this uninitialized warning.
  
  Reported by:	bz, imp
  Approved by:	imp (mentor)
  Discussed with:	ken
  Pointy hat:	chuck

Modified:
  head/usr.sbin/camdd/camdd.c

Modified: head/usr.sbin/camdd/camdd.c
==============================================================================
--- head/usr.sbin/camdd/camdd.c	Sun Jun  9 01:26:56 2019	(r348823)
+++ head/usr.sbin/camdd/camdd.c	Sun Jun  9 02:06:31 2019	(r348824)
@@ -1475,7 +1475,7 @@ camdd_probe_pass(struct cam_device *cam_dev, struct ca
 	struct kevent ke;
 	struct ccb_getdev cgd;
 	int retval;
-	int scsi_dev_type;
+	int scsi_dev_type = T_NODEVICE;
 
 	if ((retval = camdd_get_cgd(cam_dev, &cgd)) != 0) {
 		warnx("%s: error retrieving CGD", __func__);



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