svn commit: r309513 - head/sbin/camcontrol

Adrian Chadd adrian at FreeBSD.org
Sat Dec 3 20:35:41 UTC 2016


Author: adrian
Date: Sat Dec  3 20:35:39 2016
New Revision: 309513
URL: https://svnweb.freebsd.org/changeset/base/309513

Log:
  [camcontrol] init ts=0 to quieten gcc.
  
  It "looks" like ts is set to something on success, and not modified on
  error.
  
  Checked on IRC with: cem

Modified:
  head/sbin/camcontrol/timestamp.c

Modified: head/sbin/camcontrol/timestamp.c
==============================================================================
--- head/sbin/camcontrol/timestamp.c	Sat Dec  3 20:30:25 2016	(r309512)
+++ head/sbin/camcontrol/timestamp.c	Sat Dec  3 20:35:39 2016	(r309513)
@@ -328,7 +328,7 @@ timestamp(struct cam_device *device, int
 	  int retry_count, int timeout, int verbosemode __unused)
 {
 	int c;
-	uint64_t ts;
+	uint64_t ts = 0;
 	char *format_string = NULL;
 	char *timestamp_string = NULL;
 	int action = -1;


More information about the svn-src-head mailing list