diff options
author | Larry Ewing <lewing@ximian.com> | 2001-08-03 05:24:49 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2001-08-03 05:24:49 +0800 |
commit | 3c0bd9186ef18a5e080d4f346a308d49b003c743 (patch) | |
tree | 5741c6addf3ec1a20673a5f57b06867043520dbb | |
parent | bd91048f01089798e069a1962b6140d8aabdaff6 (diff) | |
download | gsoc2013-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
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-send-recv.c | 4 |
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); |