aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config-druid.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-18 04:11:36 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-18 04:11:36 +0800
commit99a779567bde67b8994af25d13bfd6f6e48fea04 (patch)
tree3c5ea3a51b11eb1791089f8d629042a260c98d0e /mail/mail-config-druid.c
parent74325ce55b6f25801f6a23f0fe33b3cfedb6181e (diff)
downloadgsoc2013-evolution-99a779567bde67b8994af25d13bfd6f6e48fea04.tar
gsoc2013-evolution-99a779567bde67b8994af25d13bfd6f6e48fea04.tar.gz
gsoc2013-evolution-99a779567bde67b8994af25d13bfd6f6e48fea04.tar.bz2
gsoc2013-evolution-99a779567bde67b8994af25d13bfd6f6e48fea04.tar.lz
gsoc2013-evolution-99a779567bde67b8994af25d13bfd6f6e48fea04.tar.xz
gsoc2013-evolution-99a779567bde67b8994af25d13bfd6f6e48fea04.tar.zst
gsoc2013-evolution-99a779567bde67b8994af25d13bfd6f6e48fea04.zip
Handle NULL source and, while we're at it, transport URLs. Apparently
2001-01-17 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'mail/mail-config-druid.c')
-rw-r--r--mail/mail-config-druid.c3
1 files changed, 3 insertions, 0 deletions
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 */