diff options
author | Vivek Jain <jvivek@novell.com> | 2005-10-21 13:10:07 +0800 |
---|---|---|
committer | Jain Vivek <jvivek@src.gnome.org> | 2005-10-21 13:10:07 +0800 |
commit | 0776ea1d51904fe2ad012fb660b5fe955d6d8fee (patch) | |
tree | 4d1e402b2c8ac74924edaf9fecf3b8fc9cbaa83e /composer/e-msg-composer-hdrs.c | |
parent | ddec6b2a3e2f61a10e1d20ad383f30abe2a26ad7 (diff) | |
download | gsoc2013-evolution-0776ea1d51904fe2ad012fb660b5fe955d6d8fee.tar.gz gsoc2013-evolution-0776ea1d51904fe2ad012fb660b5fe955d6d8fee.tar.zst gsoc2013-evolution-0776ea1d51904fe2ad012fb660b5fe955d6d8fee.zip |
Comitted NotZed's patch given on #314701
2005-10-21 Vivek Jain <jvivek@novell.com>
Comitted NotZed's patch given on #314701
** See bug #314701.
* e-msg-composer-hdrs.c (get_account_store_url): don't dereference
a null url or create an empty one.
svn path=/trunk/; revision=30545
Diffstat (limited to 'composer/e-msg-composer-hdrs.c')
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 6 |
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); } |