From: Pierre d'Herbemont Date: Wed, 28 Mar 2007 11:12:26 +0000 (+0000) Subject: http Access: Avoid using an empty pointer (Oops). X-Git-Tag: 0.9.0-test0~7965 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e910ff15eb7c297d21f8ae7317e9ac80b5e8e375;p=vlc http Access: Avoid using an empty pointer (Oops). --- diff --git a/modules/access/http.c b/modules/access/http.c index a324bd7554..9a6d5e13ef 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -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);