changeset 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 b6a01d947a8a
children 61152dbb504b 707cd521188a
files libpurple/protocols/msn/httpconn.c libpurple/protocols/msn/servconn.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/httpconn.c	Fri Sep 21 12:50:41 2007 +0000
+++ b/libpurple/protocols/msn/httpconn.c	Fri Sep 21 13:18:41 2007 +0000
@@ -663,6 +663,8 @@
 	httpconn->tx_buf = purple_circ_buffer_new(MSN_BUF_LEN);
 	httpconn->tx_handler = 0;
 
+	httpconn->fd = -1;
+
 	return httpconn;
 }
 
--- 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;
 }