From 48d74a5f32050efd7cbd162fbd7076731cf56555 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 22 Jan 2001 21:28:24 +0000 Subject: Oops, danw didn't know 'provider' could be NULL :-) 2001-01-22 Jeffrey Stedfast * mail-config-druid.c (incoming_type_changed): Oops, danw didn't know 'provider' could be NULL :-) svn path=/trunk/; revision=7721 --- mail/ChangeLog | 5 +++++ mail/mail-config-druid.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index b79f192cd0..c8052b75b0 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-01-22 Jeffrey Stedfast + + * mail-config-druid.c (incoming_type_changed): Oops, danw didn't + know 'provider' could be NULL :-) + 2001-01-22 Dan Winship * mail-config-druid.c (incoming_type_changed): Change "Path:" diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index 4e6f96b3a3..a7c947a026 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -454,7 +454,7 @@ incoming_type_changed (GtkWidget *widget, gpointer user_data) /* path */ label = glade_xml_get_widget (druid->gui, "lblSourcePath"); /* FIXME */ - if (!strcmp (provider->protocol, "imap")) + if (provider && !strcmp (provider->protocol, "imap")) gtk_label_set_text (GTK_LABEL (label), _("Namespace:")); else gtk_label_set_text (GTK_LABEL (label), _("Path:")); @@ -464,7 +464,7 @@ incoming_type_changed (GtkWidget *widget, gpointer user_data) if (!strcmp (provider->protocol, "mbox")) { char *path; - + if (getenv ("MAIL")) path = g_strdup (getenv ("MAIL")); else -- cgit v1.2.3