X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_url.c;fp=php_http_url.c;h=23dec9f1968aa9b9964ed9339742dd92ecd9377a;hp=e26a45d25c4cf4399d31821aa1535491f54013f0;hb=37c5e00b8e827be61f286eba9c92c7adf3151b43;hpb=7938ddbed547a03296a185d5f53ccf9e1cf9a9db diff --git a/php_http_url.c b/php_http_url.c index e26a45d..23dec9f 100644 --- a/php_http_url.c +++ b/php_http_url.c @@ -673,6 +673,8 @@ static const char *parse_path(php_http_url_t *url) /* did we have any path component ? */ if (tmp != url->ptr) { url->buffer[url->offset++] = 0; + } else { + url->path = NULL; } return url->ptr;