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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/camel/camel-url.c b/camel/camel-url.c
index d7e5888592..96721bda24 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -56,6 +56,9 @@
*
* The port, if present, must be numeric.
*
+ * If nothing but the protocol (and the ":") is present, the "empty"
+ * flag will be set on the returned URL.
+ *
* Return value: a CamelURL structure containing the URL items.
**/
CamelURL *
@@ -95,7 +98,8 @@ camel_url_new (const char *url_string, CamelException *ex)
if (*(colon + 1)) {
url->path = g_strdup (colon + 1);
camel_url_decode (url->path);
- }
+ } else
+ url->empty = TRUE;
return url;
}