Mercurial > pidgin
comparison libpurple/protocols/msn/httpconn.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 | e73e510d56ec |
children | 1d9d5de48b9e |
comparison
equal
deleted
inserted
replaced
20593:b6a01d947a8a | 20594:ec11c8ec0305 |
---|---|
661 httpconn->servconn = servconn; | 661 httpconn->servconn = servconn; |
662 | 662 |
663 httpconn->tx_buf = purple_circ_buffer_new(MSN_BUF_LEN); | 663 httpconn->tx_buf = purple_circ_buffer_new(MSN_BUF_LEN); |
664 httpconn->tx_handler = 0; | 664 httpconn->tx_handler = 0; |
665 | 665 |
666 httpconn->fd = -1; | |
667 | |
666 return httpconn; | 668 return httpconn; |
667 } | 669 } |
668 | 670 |
669 void | 671 void |
670 msn_httpconn_destroy(MsnHttpConn *httpconn) | 672 msn_httpconn_destroy(MsnHttpConn *httpconn) |