summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-19 16:11:50 +0100
committersin <sin@2f30.org>2014-09-19 16:12:08 +0100
commit34d5656caaffcd9c13190dbe7bbc9c8c03cf8a87 (patch)
treeaaf2ee1c0d1c172395bca08665c95f36936ea689 /ratox.c
parent32b38598f8985a3dc249d9ba6f26b67cf833688a (diff)
Initialize fdmax
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index 389173f..52789df 100644
--- a/ratox.c
+++ b/ratox.c
@@ -1045,6 +1045,7 @@ loop(void)
FD_ZERO(&rfds);
+ fdmax = -1;
for (i = 0; i < LEN(gslots); i++) {
FD_SET(gslots[i].fd[IN], &rfds);
if (gslots[i].fd[IN] > fdmax)