changeset 28856:214357c85418

*** Plucked rev 941f01ed2234f8e476b7260fbd6ea873583387f7 (f05c54b03e6bbfdbff38c01697fbd353a969e05e): jabber: Complete the fix for a NULL printf() on registration on Windows. Closes #10420 again. Man, do I hate these NULL printf() bugs. *** Plucked rev 1cebb8e5585732c30dcfb31a6700dcb78ae47b44 (f05c54b03e6bbfdbff38c01697fbd353a969e05e): Changelog that.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 07 Jan 2010 23:41:17 +0000
parents 1be982612d9a
children d4814f2afaef
files ChangeLog libpurple/protocols/jabber/jabber.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jan 07 23:38:42 2010 +0000
+++ b/ChangeLog	Thu Jan 07 23:41:17 2010 +0000
@@ -1,6 +1,10 @@
 
 Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul
 
+version 2.6.5 (??/??/20??):
+	XMPP:
+	* Do not crash when attempting to register for a new account on Windows.
+
 version 2.6.4 (11/29/2009):
 	libpurple:
 	* Actually emit the hold signal for media calls.
--- a/libpurple/protocols/jabber/jabber.c	Thu Jan 07 23:38:42 2010 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Thu Jan 07 23:41:17 2010 +0000
@@ -1116,7 +1116,8 @@
 
 	if(cbdata->js->registration) {
 		username = g_strdup_printf("%s@%s%s%s", cbdata->js->user->node, cbdata->js->user->domain,
-			cbdata->js->user->resource ? "/" : "", cbdata->js->user->resource);
+			cbdata->js->user->resource ? "/" : "",
+			cbdata->js->user->resource ? cbdata->js->user->resource : "");
 		purple_account_set_username(cbdata->js->gc->account, username);
 		g_free(username);
 	}