aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-url.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2001-10-10 02:40:20 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2001-10-10 02:40:20 +0800
commit20d8a18413927f964a2a2a6f01acbd158f3957a2 (patch)
treec6a868e6dfa8096d7550126a65d9d6dfc0a1b9df /e-util/e-url.c
parent4186cba8a65447ae5b93b43070eb290ee0762ff2 (diff)
downloadgsoc2013-evolution-20d8a18413927f964a2a2a6f01acbd158f3957a2.tar
gsoc2013-evolution-20d8a18413927f964a2a2a6f01acbd158f3957a2.tar.gz
gsoc2013-evolution-20d8a18413927f964a2a2a6f01acbd158f3957a2.tar.bz2
gsoc2013-evolution-20d8a18413927f964a2a2a6f01acbd158f3957a2.tar.lz
gsoc2013-evolution-20d8a18413927f964a2a2a6f01acbd158f3957a2.tar.xz
gsoc2013-evolution-20d8a18413927f964a2a2a6f01acbd158f3957a2.tar.zst
gsoc2013-evolution-20d8a18413927f964a2a2a6f01acbd158f3957a2.zip
don't add the host if it's null
2001-10-09 Rodrigo Moya <rodrigo@ximian.com> * e-url.c (e_uri_to_string): don't add the host if it's null svn path=/trunk/; revision=13526
Diffstat (limited to 'e-util/e-url.c')
-rw-r--r--e-util/e-url.c4
1 files changed, 2 insertions, 2 deletions
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 : "");