]> git.sesse.net Git - vlc/commitdiff
vlc_url.h: warning about overriden variable.
authorRémi Duraffort <ivoire@videolan.org>
Sun, 1 Feb 2009 16:23:18 +0000 (17:23 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 3 Feb 2009 09:49:33 +0000 (10:49 +0100)
include/vlc_url.h

index 7cedd5b8b0156cbf9211d215b7ff4cd7b0637661..dc2a021031a408e0ac5b849790189e72a62eafbb 100644 (file)
@@ -85,7 +85,6 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
     p  = strstr( psz_parse, ":/" );
     if( p != NULL )
     {
-        char *p2;
         for( p2 = psz_parse; p2 < p; p2++ )
         {
 #define I(i,a,b) ( (a) <= (i) && (i) <= (b) )
@@ -132,8 +131,6 @@ static inline void vlc_UrlParse( vlc_url_t *url, const char *psz_url,
     p = strchr( psz_parse, '/' );
     if( !p || psz_parse < p )
     {
-        char *p2;
-
         /* We have a host[:port] */
         url->psz_host = strdup( psz_parse );
         if( p )