[vlc-commits] http: simplify previous commit

Rémi Denis-Courmont git at videolan.org
Sun Apr 14 17:20:14 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 14 18:20:04 2013 +0300| [5db3bf3b7b43bca52c8f91d0b2018d348d200328] | committer: Rémi Denis-Courmont

http: simplify previous commit

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5db3bf3b7b43bca52c8f91d0b2018d348d200328
---

 src/text/url.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/text/url.c b/src/text/url.c
index cba463c..d564811 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -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;



More information about the vlc-commits mailing list