# HG changeset patch # User Eric Warmenhoven # Date 1002346484 0 # Node ID 13ce96daf30fc9505244fc98d3e2f77ef8d21e9c # Parent 7f2432a87376ae1eeb305d9438a3f91f6fbd9aac [gaim-migrate @ 2457] hi committer: Tailor Script diff -r 7f2432a87376 -r 13ce96daf30f src/multi.c --- 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); }