From e5de77bb310417d3f0c553217cef1e913bfa7cd8 Mon Sep 17 00:00:00 2001 From: Davide Date: Tue, 2 Dec 2025 22:24:23 +0100 Subject: [PATCH] Fix required hostname --- yuarel.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/yuarel.c b/yuarel.c index a5f313f..d017fc7 100644 --- a/yuarel.c +++ b/yuarel.c @@ -188,11 +188,6 @@ yuarel_parse(struct yuarel *url, char *u) *u = '\0'; } - /* Missing hostname? */ - if ('\0' == *url->host) { - return -1; - } - /* (Port) */ u = strchr(url->host, ':'); if (NULL != u && (NULL == url->path || u < url->path)) { @@ -210,7 +205,7 @@ yuarel_parse(struct yuarel *url, char *u) /* Missing hostname? */ if ('\0' == *url->host) { - return -1; + url->host = NULL; } } else { /* (Path) */