Commit 7f2ef7d9 authored by Christophe Mutricy's avatar Christophe Mutricy

http.c: fixe a segfault when the proxy is retrieved from the environement variable.( closes #167 )

parent 047eddc6
......@@ -277,7 +277,7 @@ static int Open( vlc_object_t *p_this )
}
else
{
char *psz_proxy = getenv( "http_proxy" );
char *psz_proxy = strdup(getenv( "http_proxy" ));
if( psz_proxy && *psz_proxy )
{
p_sys->b_proxy = VLC_TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment