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 8419fe4bb9d2b46864c8f53909352936b420a4b1..8bc84139a92d75abddb4eaa5b1c1c503450382a1 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;