From 20d8a18413927f964a2a2a6f01acbd158f3957a2 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 9 Oct 2001 18:40:20 +0000 Subject: don't add the host if it's null 2001-10-09 Rodrigo Moya * e-url.c (e_uri_to_string): don't add the host if it's null svn path=/trunk/; revision=13526 --- e-util/e-url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'e-util/e-url.c') diff --git a/e-util/e-url.c b/e-util/e-url.c index 34f28ab2f7..8054ba897a 100644 --- a/e-util/e-url.c +++ b/e-util/e-url.c @@ -316,7 +316,7 @@ e_uri_to_string (EUri *uri, gboolean show_password) uri->passwd && show_password ? ":" : "", uri->passwd && show_password ? uri->passwd : "", uri->user ? "@" : "", - uri->host, + uri->host ? uri->host : "", uri->port, uri->path ? uri->path : "", uri->query ? "?" : "", @@ -331,7 +331,7 @@ e_uri_to_string (EUri *uri, gboolean show_password) uri->passwd && show_password ? ":" : "", uri->passwd && show_password ? uri->passwd : "", uri->user ? "@" : "", - uri->host, + uri->host ? uri->host : "", uri->path ? uri->path : "", uri->query ? "?" : "", uri->query ? uri->query : ""); -- cgit v1.2.3