From: Rich Felker Date: Mon, 5 Aug 2019 16:01:13 +0000 (-0400) Subject: fix regression in clock_gettime on 32-bit archs without vdso X-Git-Tag: v1.1.24~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=244778f70cecdb08302e47cfe412e8e186113444;p=oweals%2Fmusl.git fix regression in clock_gettime on 32-bit archs without vdso commit 72f50245d018af0c31b38dec83c557a4e5dd1ea8 broke this by creating a code path where r is uninitialized. --- diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c index 63e9f9c8..3e1d0975 100644 --- a/src/time/clock_gettime.c +++ b/src/time/clock_gettime.c @@ -73,6 +73,7 @@ int __clock_gettime(clockid_t clk, struct timespec *ts) #endif #ifdef SYS_clock_gettime64 + r = -ENOSYS; if (sizeof(time_t) > 4) r = __syscall(SYS_clock_gettime64, clk, ts); if (SYS_clock_gettime == SYS_clock_gettime64 || r!=-ENOSYS)