[gaim-migrate @ 14302]

Tue, 08 Nov 2005 23:44:00 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Tue, 08 Nov 2005 23:44:00 +0000
changeset 12009
06852325c88f
parent 12008
df998b18ec60
child 12010
aa2f3b07ec09

[gaim-migrate @ 14302]
This should fix a crash Ethan is seeing when his gg account fails to
sign on at startup.

src/gtkconn.c file | annotate | diff | comparison | revisions
--- a/src/gtkconn.c	Tue Nov 08 23:34:54 2005 +0000
+++ b/src/gtkconn.c	Tue Nov 08 23:44:00 2005 +0000
@@ -136,7 +136,7 @@
 
 static void gaim_gtk_connection_report_disconnect(GaimConnection *gc, const char *text)
 {
-	GaimGtkBuddyList *list = gaim_gtk_blist_get_default_gtk_blist();
+	GaimGtkBuddyList *gtkblist = gaim_gtk_blist_get_default_gtk_blist();
 	GaimAccount *account = NULL;
 	GaimAutoRecon *info;
 	GSList* listAccount;
@@ -153,9 +153,10 @@
 		listAccount = NULL;
 
 	if (!gc->wants_to_die) {
-	  gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(list->statusbox), text);
+		if (gtkblist != NULL)
+			gtk_gaim_status_box_set_error(GTK_GAIM_STATUS_BOX(gtkblist->statusbox), text);
 
-	  if (info == NULL) {
+		if (info == NULL) {
 			info = g_new0(GaimAutoRecon, 1);
 			g_hash_table_insert(hash, account, info);
 			info->delay = INITIAL_RECON_DELAY;

mercurial