Commit a3c6cf07 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Avoid variable shadowing

parent 481a5ae1
...@@ -110,19 +110,19 @@ int MMSHOpen( access_t *p_access ) ...@@ -110,19 +110,19 @@ int MMSHOpen( access_t *p_access )
{ {
p_sys->b_proxy = true; p_sys->b_proxy = true;
vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 ); vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 );
free( psz_proxy );
} }
#ifdef HAVE_GETENV #ifdef HAVE_GETENV
else else
{ {
char *psz_proxy = getenv( "http_proxy" ); const char *http_proxy = getenv( "http_proxy" );
if( psz_proxy && *psz_proxy ) if( http_proxy )
{ {
p_sys->b_proxy = true; p_sys->b_proxy = true;
vlc_UrlParse( &p_sys->proxy, psz_proxy, 0 ); vlc_UrlParse( &p_sys->proxy, http_proxy, 0 );
} }
} }
#endif #endif
free( psz_proxy );
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