diff options
author | Rich Felker <dalias@aerifal.cx> | 2019-08-05 12:01:13 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2019-08-05 12:01:13 -0400 |
commit | 244778f70cecdb08302e47cfe412e8e186113444 (patch) | |
tree | 92e9f56e7636e8689010e5fee1db70fc2cf9fa7a /src | |
parent | 6fcb440d91ad972d970984ae3e781d30c0602c9f (diff) | |
download | musl-244778f70cecdb08302e47cfe412e8e186113444.tar.gz musl-244778f70cecdb08302e47cfe412e8e186113444.tar.bz2 musl-244778f70cecdb08302e47cfe412e8e186113444.tar.xz musl-244778f70cecdb08302e47cfe412e8e186113444.zip |
fix regression in clock_gettime on 32-bit archs without vdso
commit 72f50245d018af0c31b38dec83c557a4e5dd1ea8 broke this by creating
a code path where r is uninitialized.
Diffstat (limited to 'src')
-rw-r--r-- | src/time/clock_gettime.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |