Commit 15ac5333 authored by Gildas Bazin's avatar Gildas Bazin

* modules/access/http.c: backport of 11237

parent 75206aac
...@@ -275,17 +275,17 @@ static int Open( vlc_object_t *p_this ) ...@@ -275,17 +275,17 @@ static int Open( vlc_object_t *p_this )
p_sys->b_proxy = VLC_TRUE; p_sys->b_proxy = VLC_TRUE;
vlc_UrlParse( &p_sys->proxy, psz, 0 ); vlc_UrlParse( &p_sys->proxy, psz, 0 );
} }
#ifdef HAVE_GETENV
else else
{ {
char *psz_proxy = strdup(getenv( "http_proxy" )); char *psz_proxy = getenv( "http_proxy" );
if( psz_proxy && *psz_proxy ) if( psz_proxy && *psz_proxy )
{ {
p_sys->b_proxy = VLC_TRUE; p_sys->b_proxy = VLC_TRUE;
vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 ); vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 );
} }
if( psz_proxy )
free( psz_proxy );
} }
#endif
free( psz ); free( psz );
if( p_sys->b_proxy ) if( p_sys->b_proxy )
......
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