aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog4
-rw-r--r--e-util/e-url.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 6de73344ba..51e721c76e 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,7 @@
+2001-10-09 Rodrigo Moya <rodrigo@ximian.com>
+
+ * e-url.c (e_uri_to_string): don't add the host if it's null
+
2001-10-06 Christopher James Lahey <clahey@ximian.com>
* ename/e-address-western.c (e_address_western_parse): Made this
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 : "");