mirror of
git://git.musl-libc.org/musl
synced 2024-12-17 12:14:42 +00:00
fix regression in clock_gettime on 32-bit archs without vdso
commit 72f50245d0
broke this by creating
a code path where r is uninitialized.
This commit is contained in:
parent
6fcb440d91
commit
244778f70c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user