From 3c0bd9186ef18a5e080d4f346a308d49b003c743 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Thu, 2 Aug 2001 21:24:49 +0000 Subject: handle null paths in the dialog so that we avoid printing NULL strings 2001-08-02 Larry Ewing * mail-send-recv.c (format_url): handle null paths in the dialog so that we avoid printing NULL strings svn path=/trunk/; revision=11599 --- mail/ChangeLog | 5 +++++ mail/mail-send-recv.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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 + + * mail-send-recv.c (format_url): handle null paths in the dialog + so that we avoid printing NULL strings + 2001-08-02 Jeffrey Stedfast * 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); -- cgit v1.2.3