about summary refs log tree commit diff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-10 18:05:02 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-10 18:05:02 -0400
commit3b5e69052a867e9d99cf4c655d775bd06e3437f1 (patch)
tree2c2aab94e7d967408c15aeb1c87d4ae3c6dc918b /src/linux
parent2c1cd2399a237db968a521cdaef3d47a3fb2c2e9 (diff)
downloadmusl-3b5e69052a867e9d99cf4c655d775bd06e3437f1.tar.gz
musl-3b5e69052a867e9d99cf4c655d775bd06e3437f1.tar.xz
musl-3b5e69052a867e9d99cf4c655d775bd06e3437f1.zip
fix ppoll with null timeout argument
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/ppoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/ppoll.c b/src/linux/ppoll.c
index 8f4aab9b..d49e836e 100644
--- a/src/linux/ppoll.c
+++ b/src/linux/ppoll.c
@@ -4,6 +4,6 @@
 
 int ppoll(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask)
 {
-	struct timespec tmp = *to;
-	return syscall_cp(SYS_ppoll, fds, n, &tmp, mask);
+	return syscall_cp(SYS_ppoll, fds, n,
+		to ? (struct timespec []){*to} : 0, mask);
 }