summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/url.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/url.c b/utils/url.c
index 23273a848..7600a1375 100644
--- a/utils/url.c
+++ b/utils/url.c
@@ -37,7 +37,7 @@ void url_init(void)
"(\\?([^#[:space:]]*))?(#([^[:space:]]*))?"
"[[:space:]]*$", REG_EXTENDED);
regcomp_wrapper(&url_up_re,
- "/(|[^/]|[.][^./]|[^./][.]|[^/][^/][^/]+)/[.][.](/|$)",
+ "/([^/]|[.][^./]|[^./][.]|[^/][^/][^/]+)/[.][.](/|$)",
REG_EXTENDED);
regcomp_wrapper(&url_nice_re,
"^([^.]{0,4}[.])?([^.][^.][.])?([^/?&;.=]*)"
@@ -92,8 +92,8 @@ url_func_result url_normalize(const char *url, char **result)
len += sizeof("http://")-1;
} else {
if ((*result = malloc(len + 6)) == NULL) {
- LOG(("strdup failed"));
- return URL_FUNC_FAILED;
+ LOG(("malloc failed"));
+ return URL_FUNC_NOMEM;
}
strcpy(*result, url);
}