diff options
author | Jilles Tjoelker <jilles@irssi.org> | 2009-02-28 22:48:41 +0000 |
---|---|---|
committer | jilles <jilles@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2009-02-28 22:48:41 +0000 |
commit | 5f05c7ca7a6e45fb2f2cb82f39234d84bdc8b10e (patch) | |
tree | 4cf4619d7368bec0448e9d67e530150d28b988e2 /src | |
parent | 66b223c49bad748ac35fe81d16a5e4f4d5e1688a (diff) | |
download | irssi-5f05c7ca7a6e45fb2f2cb82f39234d84bdc8b10e.zip |
Ensure variable is initialized.
Make sure not to set connection_lost if the server was
already disconnected.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5030 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/irc.c | 1 |
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) { |