]> git.sesse.net Git - vlc/commitdiff
Port [11207] to trunk
authorChristophe Mutricy <xtophe@videolan.org>
Tue, 31 May 2005 17:45:30 +0000 (17:45 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Tue, 31 May 2005 17:45:30 +0000 (17:45 +0000)
modules/access/http.c

index 073594a3afcab507425b00ee0513c8ad0cfd89fe..84ed92c8d026bdd69440a69166e38b22d3bf8953 100644 (file)
@@ -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;