summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/irc/core/irc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irc/core/irc.c b/src/irc/core/irc.c
index 7ae66641..1ffecb0b 100644
--- a/src/irc/core/irc.c
+++ b/src/irc/core/irc.c
@@ -371,6 +371,7 @@ static void irc_parse_incoming(SERVER_REC *server)
too slowly, so read only a few times from the socket before
letting other tasks to run. */
count = 0;
+ ret = 0;
server_ref(server);
while (!server->disconnected &&
(ret = net_sendbuffer_receive_line(server->handle, &str, count < MAX_SOCKET_READS)) > 0) {