aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
parentbd91048f01089798e069a1962b6140d8aabdaff6 (diff)
downloadgsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.tar
gsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.tar.gz
gsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.tar.bz2
gsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.tar.lz
gsoc2013-evolution-3c0bd9186ef18a5e080d4f346a308d49b003c743.tar.xz
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')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-send-recv.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9577613c15..f736e86c4a 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+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
+
2001-08-02 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (filter_edit): Raise the filter-editor window
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);