From 9ea6a8c59ca9ba92e9732a08906cd535b3c16c8f Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 21 Jun 2000 23:05:29 +0000 Subject: Make this not crash if you don't have a transport configured. * mail-config.c (create_transport_page): Make this not crash if you don't have a transport configured. svn path=/trunk/; revision=3686 --- mail/mail-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/mail-config.c') diff --git a/mail/mail-config.c b/mail/mail-config.c index a45e6881ee..56ed19824a 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -959,7 +959,7 @@ create_transport_page (GtkWidget *vbox, GList *transports, char **urlp) optionmenu = gtk_object_get_data (GTK_OBJECT (vbox), "stype_optionmenu"); - if (!strncasecmp(*urlp, "sendmail", 8)) { + if (*urlp && !strncasecmp(*urlp, "sendmail", 8)) { menuitem = gtk_object_get_data (GTK_OBJECT (vbox), "Sendmail"); gtk_option_menu_set_history (GTK_OPTION_MENU (optionmenu), 1); } else { -- cgit