From a1fa23910c8a931afdb72bef61a15d200e79f55d Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Sat, 3 Dec 2016 20:35:39 +0000 Subject: [PATCH] [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 --- sbin/camcontrol/timestamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/camcontrol/timestamp.c b/sbin/camcontrol/timestamp.c index f452affd1818..642a15a007f9 100644 --- a/sbin/camcontrol/timestamp.c +++ b/sbin/camcontrol/timestamp.c @@ -328,7 +328,7 @@ timestamp(struct cam_device *device, int argc, char **argv, char *combinedopt, 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;