changeset 2444:13ce96daf30f

[gaim-migrate @ 2457] hi committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 06 Oct 2001 05:34:44 +0000
parents 7f2432a87376
children adb5106341de
files src/multi.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/multi.c	Sat Oct 06 04:37:34 2001 +0000
+++ b/src/multi.c	Sat Oct 06 05:34:44 2001 +0000
@@ -424,7 +424,8 @@
 	GtkWidget *browse;
 	GtkWidget *reset;
 
-	g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", u->user->iconfile);
+	if (u->user)
+		g_snprintf(u->iconfile, sizeof(u->iconfile), "%s", u->user->iconfile);
 
 	hbox = gtk_hbox_new(FALSE, 0);
 	gtk_box_pack_start(GTK_BOX(box), hbox, FALSE, FALSE, 5);
@@ -513,8 +514,10 @@
 	u->rempass = rempass;
 	u->checkmail = checkmail;
 	u->iconsel = iconsel;
-	gtk_entry_set_text(GTK_ENTRY(name), u->user->username);
-	gtk_entry_set_text(GTK_ENTRY(pass), u->user->password);
+	if (u->user) {
+		gtk_entry_set_text(GTK_ENTRY(name), u->user->username);
+		gtk_entry_set_text(GTK_ENTRY(pass), u->user->password);
+	}
 	gtk_entry_set_editable(GTK_ENTRY(name), FALSE);
 }