From 3b5e69052a867e9d99cf4c655d775bd06e3437f1 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 10 Sep 2012 18:05:02 -0400 Subject: fix ppoll with null timeout argument --- src/linux/ppoll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/linux') 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); } -- cgit v1.2.1