From 34d5656caaffcd9c13190dbe7bbc9c8c03cf8a87 Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 19 Sep 2014 16:11:50 +0100 Subject: Initialize fdmax --- ratox.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3