Date: Sat, 3 Dec 2016 20:35:39 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309513 - head/sbin/camcontrol Message-ID: <201612032035.uB3KZd4I006249@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612032035.uB3KZd4I006249>