diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-16 22:40:38 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-16 22:40:38 +0000 |
commit | 4bbcba32aca2948f66c484ab074264fdb67609ae (patch) | |
tree | ad21322176d956d0ee8942b76e0c73442a313fac /protocols/jabber/io.c | |
parent | add23a26034a7368f4fdc0707488719048322e89 (diff) |
Moved xmltree handlers initialization to xt_new().
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r-- | protocols/jabber/io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c index 86c216ef..9980dc8e 100644 --- a/protocols/jabber/io.c +++ b/protocols/jabber/io.c @@ -520,8 +520,7 @@ gboolean jabber_start_stream( struct im_connection *ic ) /* We'll start our stream now, so prepare everything to receive one from the server too. */ xt_free( jd->xt ); /* In case we're RE-starting. */ - jd->xt = xt_new( ic ); - jd->xt->handlers = (struct xt_handler_entry*) jabber_handlers; + jd->xt = xt_new( jabber_handlers, ic ); if( jd->r_inpa <= 0 ) jd->r_inpa = b_input_add( jd->fd, GAIM_INPUT_READ, jabber_read_callback, ic ); |