diff options
author | Milan Crha <mcrha@redhat.com> | 2009-11-06 04:01:18 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-11-06 04:01:18 +0800 |
commit | f2e75c5d13a0899b042e7c7f60639be19871f7ca (patch) | |
tree | a272e05ba525a1ef777c4ee0d03c35e716de8474 /mail/mail-send-recv.c | |
parent | 4fd8fbc29a32a2d91b75599f24f49f66002ddb8f (diff) | |
download | gsoc2013-evolution-f2e75c5d13a0899b042e7c7f60639be19871f7ca.tar gsoc2013-evolution-f2e75c5d13a0899b042e7c7f60639be19871f7ca.tar.gz gsoc2013-evolution-f2e75c5d13a0899b042e7c7f60639be19871f7ca.tar.bz2 gsoc2013-evolution-f2e75c5d13a0899b042e7c7f60639be19871f7ca.tar.lz gsoc2013-evolution-f2e75c5d13a0899b042e7c7f60639be19871f7ca.tar.xz gsoc2013-evolution-f2e75c5d13a0899b042e7c7f60639be19871f7ca.tar.zst gsoc2013-evolution-f2e75c5d13a0899b042e7c7f60639be19871f7ca.zip |
Bug #598877 - Crash while sending mail, in report_status function
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 6244685842..1495f09ed4 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -359,7 +359,7 @@ format_url (const gchar *internal_url, const gchar *account_name) else pretty_url = g_strdup_printf("<b>%s (%s)</b>", account_name, url->protocol); } - else { + else if (url) { if (url->host && *url->host) pretty_url = g_strdup_printf("<b>%s</b>: %s", url->protocol, url->host); else if (url->path) @@ -367,7 +367,9 @@ format_url (const gchar *internal_url, const gchar *account_name) else pretty_url = g_strdup_printf("<b>%s</b>", url->protocol); } - camel_url_free(url); + + if (url) + camel_url_free(url); return pretty_url; } |