diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-05 03:45:02 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-05 03:45:02 +0800 |
commit | fcca68399ed6e0e9e6cb6e0d790f5b55a4593da6 (patch) | |
tree | a8840e2da71c56c8b841159d0ff51dff3cabcba9 /mail/mail-account-gui.c | |
parent | 78385be6d913f48b1f58df8c59d883d6212f6dbf (diff) | |
download | gsoc2013-evolution-fcca68399ed6e0e9e6cb6e0d790f5b55a4593da6.tar.gz gsoc2013-evolution-fcca68399ed6e0e9e6cb6e0d790f5b55a4593da6.tar.zst gsoc2013-evolution-fcca68399ed6e0e9e6cb6e0d790f5b55a4593da6.zip |
Added some more NULL checks.
2001-10-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Added some more NULL checks.
svn path=/trunk/; revision=13418
Diffstat (limited to 'mail/mail-account-gui.c')
-rw-r--r-- | mail/mail-account-gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index d9a0da12c5..30a7ec1ea5 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1649,7 +1649,7 @@ mail_account_gui_save (MailAccountGui *gui) save_service (&gui->transport, NULL, account->transport); /* Check to make sure that the Drafts folder uri is "valid" before assigning it */ - url = source_url ? camel_url_new (gui->drafts_folder.uri, NULL) : NULL; + url = source_url && gui->drafts_folder.uri ? camel_url_new (gui->drafts_folder.uri, NULL) : NULL; if (mail_config_get_account_by_source_url (gui->drafts_folder.uri) || (url && provider->url_equal (source_url, url))) { g_free (account->drafts_folder_name); @@ -1668,7 +1668,7 @@ mail_account_gui_save (MailAccountGui *gui) camel_url_free (url); /* Check to make sure that the Sent folder uri is "valid" before assigning it */ - url = camel_url_new (gui->drafts_folder.uri, NULL); + url = source_url && gui->sent_folder.uri ? camel_url_new (gui->sent_folder.uri, NULL) : NULL; if (mail_config_get_account_by_source_url (gui->sent_folder.uri) || (url && provider->url_equal (source_url, url))) { g_free (account->sent_folder_name); |