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
This commit is contained in:
Rodrigo Moya
2001-10-09 18:40:20 +00:00
committed by Rodrigo Moya
parent 4186cba8a6
commit 20d8a18413
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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 : "");