]> git.sesse.net Git - vlc/commitdiff
http Access: Avoid using an empty pointer (Oops).
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 28 Mar 2007 11:12:26 +0000 (11:12 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 28 Mar 2007 11:12:26 +0000 (11:12 +0000)
modules/access/http.c

index a324bd7554055ef2194dfa3013ccf7bddbeda966..9a6d5e13efb47189f8d4b6e94bfe412d096713a8 100644 (file)
@@ -1081,7 +1081,7 @@ static int Request( access_t *p_access, int64_t i_tell )
             char * psz_new_loc;
 
             /* Rework redirection that don't include server name */
-            if( !strncmp( psz_new_loc, "/", 1 ) )
+            if( !strncmp( p, "/", 1 ) )
             {
                 asprintf(&psz_new_loc, "http://%s:%d%s", p_sys->url.psz_host,
                         p_sys->url.i_port, p);