changeset 26792:6ab56b3dd836

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.
author Paul Aurich <paul@darkrain42.org>
date Mon, 27 Apr 2009 05:43:18 +0000
parents baa23b7a4d42
children aa28018bfa17 89a446de0d44
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;