From: Jens Axboe Date: Thu, 29 Jan 2015 16:32:28 +0000 (-0800) Subject: gettime: fix unitialized variable on Solaris X-Git-Tag: fio-2.2.6~22 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=37e2002175a9585e375ba65a5ffe9a5d49b7bb14;p=fio.git gettime: fix unitialized variable on Solaris Signed-off-by: Jens Axboe --- diff --git a/gettime.c b/gettime.c index 8419fe4b..8bc84139 100644 --- a/gettime.c +++ b/gettime.c @@ -478,7 +478,7 @@ static void *clock_thread_fn(void *data) int i; if (fio_cpuset_init(&cpu_mask)) { - int __err; + int __err = errno; log_err("clock cpuset init failed: %s\n", strerror(__err)); goto err_out;