Commit 5db3bf3b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: simplify previous commit

parent 25ab9b02
...@@ -409,7 +409,7 @@ void vlc_UrlParse (vlc_url_t *restrict url, const char *str, unsigned char opt) ...@@ -409,7 +409,7 @@ void vlc_UrlParse (vlc_url_t *restrict url, const char *str, unsigned char opt)
* URL scheme, the two subsequent slashes are not required. * URL scheme, the two subsequent slashes are not required.
* VLC uses a different scheme for historical compatibility reasons - the * VLC uses a different scheme for historical compatibility reasons - the
* scheme is often implicit. */ * scheme is often implicit. */
if (*next == ':' && !strncmp (next + 1, "//", 2)) if (!strncmp (next, "://", 3))
{ {
*next = '\0'; *next = '\0';
next += 3; next += 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment