aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-hdrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r--composer/e-msg-composer-hdrs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c
index 34f8b91f8a..6f187af83f 100644
--- a/composer/e-msg-composer-hdrs.c
+++ b/composer/e-msg-composer-hdrs.c
@@ -1281,8 +1281,10 @@ get_account_store_url (EMsgComposerHdrs *hdrs)
CamelURL *url;
char *ret = NULL;
- if (hdrs->account->source && hdrs->account->source->url) {
- url = camel_url_new (hdrs->account->source->url, NULL);
+ if (hdrs->account->source
+ && hdrs->account->source->url
+ && hdrs->account->source->url[0]
+ && (url = camel_url_new (hdrs->account->source->url, NULL))) {
ret = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
camel_url_free (url);
}