aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-url.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-url.c')
-rw-r--r--camel/camel-url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/camel/camel-url.c b/camel/camel-url.c
index bf578a41a5..60385008c4 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -7,6 +7,7 @@
* Bertrand Guiheneuf <bertrand@helixcode.com>
* Dan Winship <danw@helixcode.com>
* Tiago Antào <tiagoantao@bigfoot.com>
+ * Jeffrey Stedfast <fejj@helixcode.com>
*
* Copyright 1999, 2000 Helix Code, Inc. (http://www.helixcode.com)
*
@@ -206,7 +207,7 @@ camel_url_to_string (CamelURL *url, gboolean show_passwd)
host ? host : "",
*port ? ":" : "",
port,
- path && *path != '/' ? "/" : "",
+ path && host && *path != '/' ? "/" : "",
path ? path : "");
g_free (user);
g_free (authmech);