diff libpurple/protocols/msn/servconn.c @ 20594:ec11c8ec0305

Initialize file descriptors to -1 here too. These haven't caused any crashes yet. But I am doing this anyway, because close(0) causes really weird and confusing backtraces in finch. The rest of the places seem to already do this.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 21 Sep 2007 13:18:41 +0000
parents 8a4748cbf844
children 61152dbb504b
line wrap: on
line diff
--- a/libpurple/protocols/msn/servconn.c	Fri Sep 21 12:50:41 2007 +0000
+++ b/libpurple/protocols/msn/servconn.c	Fri Sep 21 13:18:41 2007 +0000
@@ -53,6 +53,8 @@
 	servconn->tx_buf = purple_circ_buffer_new(MSN_BUF_LEN);
 	servconn->tx_handler = 0;
 
+	serconn->fd = -1;
+
 	return servconn;
 }