aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-07 20:58:51 +0200
committerKim Alvefur <zash@zash.se>2018-10-07 20:58:51 +0200
commit4a73f5daefc054f575940a37984a7493e0574eb9 (patch)
tree4e3c075038752b8e59fd216b24b65b0317ae7793 /util-src
parentceadb9c57cec7f8a3b01a2fe4aa71f104076d29f (diff)
downloadprosody-4a73f5daefc054f575940a37984a7493e0574eb9.tar.gz
prosody-4a73f5daefc054f575940a37984a7493e0574eb9.zip
util.poll: Zero FD sets watched for errors on creation
Diffstat (limited to 'util-src')
-rw-r--r--util-src/poll.c2
1 files changed, 2 insertions, 0 deletions
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