Mercurial > pidgin.yaz
diff src/oscar.c @ 638:525c566741da
[gaim-migrate @ 648]
small libfaim changes. no, it doesn't compile on solaris yet.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 08 Aug 2000 05:02:59 +0000 |
parents | 0b1a132e0f75 |
children | f4026275bc9f |
line wrap: on
line diff
--- a/src/oscar.c Tue Aug 08 02:22:54 2000 +0000 +++ b/src/oscar.c Tue Aug 08 05:02:59 2000 +0000 @@ -113,16 +113,14 @@ debug_print(_("connection error (rend)\n")); } } else { - char *direct = NULL; - if (conn->type == AIM_CONN_TYPE_RENDEZVOUS && - conn->subtype == AIM_CONN_SUBTYPE_OFT_DIRECTIM) - direct = g_strdup(((struct aim_directim_priv *)conn->priv)->sn); if (aim_get_command(gaim_sess, conn) >= 0) { aim_rxdispatch(gaim_sess); } else { debug_print(_("connection error!\n")); - if (direct) { - struct conversation *cnv = find_conversation(direct); + if (conn->type == AIM_CONN_TYPE_RENDEZVOUS && + conn->subtype == AIM_CONN_SUBTYPE_OFT_DIRECTIM) { + struct conversation *cnv = + find_conversation(((struct aim_directim_priv *)conn->priv)->sn); debug_print("connection error for directim\n"); if (cnv) { make_direct(cnv, FALSE, NULL, 0); @@ -138,7 +136,6 @@ gdk_input_remove(inpa); } } - if (direct) g_free(direct); } } }