aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index a518144a47..115e1d0d28 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -2006,6 +2006,11 @@ impl_GNOME_Evolution_MailConfig_addAccount (PortableServer_Servant servant,
/* Copy transport */
transport = account->transport;
mail_service = g_new0 (MailConfigService, 1);
+ if (transport.url == NULL) {
+ mail_service->url = NULL;
+ } else {
+ mail_service->url = g_strdup (transport.url);
+ }
mail_service->url = g_strdup (transport.url);
mail_service->keep_on_server = transport.keep_on_server;
mail_service->auto_check = transport.auto_check;