# HG changeset patch # User Sadrul Habib Chowdhury # Date 1190380721 0 # Node ID ec11c8ec03054bc72207822555b7256d4c782ac2 # Parent b6a01d947a8a9dbb8dcd2b90198077c92be2e470 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. diff -r b6a01d947a8a -r ec11c8ec0305 libpurple/protocols/msn/httpconn.c --- 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; } diff -r b6a01d947a8a -r ec11c8ec0305 libpurple/protocols/msn/servconn.c --- 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; }