From 99a779567bde67b8994af25d13bfd6f6e48fea04 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 17 Jan 2001 20:11:36 +0000 Subject: Handle NULL source and, while we're at it, transport URLs. Apparently 2001-01-17 Jeffrey Stedfast * mail-account-editor.c (construct): Handle NULL source and, while we're at it, transport URLs. Apparently camel_url_new() and/or camel-url_free() don't handle NULL input well. * mail-accounts.c (load_accounts): Handle NULL source URLs. svn path=/trunk/; revision=7595 --- mail/mail-config-druid.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mail/mail-config-druid.c') diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c index ba9537593e..62a4144970 100644 --- a/mail/mail-config-druid.c +++ b/mail/mail-config-druid.c @@ -207,12 +207,15 @@ druid_finish (GnomeDruidPage *page, gpointer arg1, gpointer user_data) if (str) { /* cache the password and rewrite the url without the password part */ url = camel_url_new (str, NULL); + g_free (str); source->url = camel_url_to_string (url, FALSE); if (source->save_passwd && url->passwd) { mail_session_set_password (source->url, url->passwd); mail_session_remember_password (source->url); } camel_url_free (url); + } else { + source->url = NULL; } /* construct the transport */ -- cgit v1.2.3