gettime: fix unitialized variable on Solaris
authorJens Axboe <axboe@fb.com>
Thu, 29 Jan 2015 16:32:28 +0000 (08:32 -0800)
committerJens Axboe <axboe@fb.com>
Thu, 29 Jan 2015 16:32:28 +0000 (08:32 -0800)
Signed-off-by: Jens Axboe <axboe@fb.com>
gettime.c

index 8419fe4..8bc8413 100644 (file)
--- 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;