From ff58c97e5738365a08a429984414cf75fece92eb Mon Sep 17 00:00:00 2001 From: Joachim Schmitz Date: Mon, 17 Sep 2012 05:26:31 -0700 Subject: [PATCH] libreplace: Bug 8107, Fix poll replacement to become a msleep replacement --- lib/replace/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/replace/poll.c b/lib/replace/poll.c index e41548d..51a89e8 100644 --- a/lib/replace/poll.c +++ b/lib/replace/poll.c @@ -40,7 +40,7 @@ int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout) int rc; nfds_t i; - if (fds == NULL) { + if ((fds == NULL) && (nfds != 0)) { errno = EFAULT; return -1; } -- 1.7.9.5