]> git.sesse.net Git - vlc/commitdiff
http: simplify previous commit
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 14 Apr 2013 15:20:04 +0000 (18:20 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 14 Apr 2013 15:20:04 +0000 (18:20 +0300)
src/text/url.c

index cba463ca1afa57eb133c4a5ffb4d7a35561e222a..d564811f042578d13e43d6ab2dff8ebb0ccac962 100644 (file)
@@ -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.
      * VLC uses a different scheme for historical compatibility reasons - the
      * scheme is often implicit. */
-    if (*next == ':' && !strncmp (next + 1, "//", 2))
+    if (!strncmp (next, "://", 3))
     {
         *next = '\0';
         next += 3;