diff --git a/components/libc/posix/io/poll/poll.c b/components/libc/posix/io/poll/poll.c index 3c5940b8d3..ba2442c0d5 100644 --- a/components/libc/posix/io/poll/poll.c +++ b/components/libc/posix/io/poll/poll.c @@ -168,6 +168,7 @@ static int poll_do(struct pollfd *fds, nfds_t nfds, struct rt_poll_table *pt, in { pf = fds; num = 0; + pt->triggered = 0; for (n = 0; n < nfds; n ++) {