aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-08-03 05:24:49 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-08-03 05:24:49 +0800
commit3c0bd9186ef18a5e080d4f346a308d49b003c743 (patch)
tree5741c6addf3ec1a20673a5f57b06867043520dbb /mail/mail-send-recv.c
parentbd91048f01089798e069a1962b6140d8aabdaff6 (diff)
downloadgsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.tar.gz
gsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.tar.zst
gsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.zip
handle null paths in the dialog so that we avoid printing NULL strings
2001-08-02 Larry Ewing <lewing@ximian.com> * mail-send-recv.c (format_url): handle null paths in the dialog so that we avoid printing NULL strings svn path=/trunk/; revision=11599
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index b8f507b45d..0564dd0214 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -226,8 +226,10 @@ format_url(const char *internal_url)
url = camel_url_new(internal_url, NULL);
if (url->host)
pretty_url = g_strdup_printf("Server: %s, Type: %s", url->host, url->protocol);
- else
+ else if (url->path)
pretty_url = g_strdup_printf("Path: %s, Type: %s", url->path, url->protocol);
+ else
+ pretty_url = g_strdup_printf("Type: %s", url->protocol);
camel_url_free(url);