# HG changeset patch # User Paul Aurich # Date 1240810998 0 # Node ID eb45f24bb31cd01f715bad9f8804bc12d3ce5303 # Parent a495982a23a92e75616731c8f41a2b007670d0da Initialize js->old_length to the value used as a default in presence.c. In noticeable terms, stop publishing an empty tune pubsub event at login. diff -r a495982a23a9 -r eb45f24bb31c libpurple/protocols/jabber/jabber.c --- a/libpurple/protocols/jabber/jabber.c Sun Apr 26 22:55:58 2009 +0000 +++ b/libpurple/protocols/jabber/jabber.c Mon Apr 27 05:43:18 2009 +0000 @@ -727,7 +727,7 @@ js->user = jabber_id_new(purple_account_get_username(account)); js->next_id = g_random_int(); js->write_buffer = purple_circ_buffer_new(512); - js->old_length = 0; + js->old_length = -1; js->keepalive_timeout = -1; js->certificate_CN = g_strdup(connect_server[0] ? connect_server : js->user ? js->user->domain : NULL); js->sessions = NULL;