From 34be9eaebf2ff39e644a13ece3324f6f84275788 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 7 Oct 2018 20:58:51 +0200 Subject: util.poll: Zero FD sets watched for errors on creation --- util-src/poll.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util-src') diff --git a/util-src/poll.c b/util-src/poll.c index 47a994c1..11e3fecf 100644 --- a/util-src/poll.c +++ b/util-src/poll.c @@ -389,6 +389,8 @@ int Lnew(lua_State *L) { FD_ZERO(&state->wantwrite); FD_ZERO(&state->readable); FD_ZERO(&state->writable); + FD_ZERO(&state->all); + FD_ZERO(&state->err); state->processed = FD_SETSIZE; #endif -- cgit v1.2.3