svn commit: r348824 - head/usr.sbin/camdd

Chuck Tuffli chuck at FreeBSD.org
Sun Jun 9 02:06:33 UTC 2019


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__);


More information about the svn-src-all mailing list