pidgin/gtkaccount.c

changeset 35689
1e257009ac10
parent 35527
707c3c2b2c8a
child 35733
60a5d065ca81
--- a/pidgin/gtkaccount.c	Thu Apr 03 18:01:10 2014 +0200
+++ b/pidgin/gtkaccount.c	Thu Apr 03 18:23:35 2014 +0200
@@ -329,7 +329,7 @@
 	GHashTable *table = NULL;
 	const char *label = NULL;
 
-	if(PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(dialog->prpl_info, get_account_text_table)) {
+	if (PURPLE_PROTOCOL_PLUGIN_HAS_FUNC(dialog->prpl_info, get_account_text_table)) {
 		table = dialog->prpl_info->get_account_text_table(NULL);
 		label = g_hash_table_lookup(table, "login_label");
 
@@ -708,7 +708,7 @@
 		const char *value = NULL;
 		char *c;
 
-		if (dialog->account != NULL) {
+		if (dialog->account != NULL && username != NULL) {
 			if(purple_account_user_split_get_reverse(split))
 				c = strrchr(username,
 						purple_account_user_split_get_separator(split));

mercurial