From: Rafaël Carré Date: Tue, 9 Oct 2007 14:05:57 +0000 (+0000) Subject: Partly revert [20969]. fix #1311 X-Git-Tag: 0.9.0-test0~5132 X-Git-Url: http://git.videolan.org/gitweb.cgi/vlc.git/?p=vlc.git;p=vlc.git;a=commitdiff_plain;h=97c5433133d3da48a325199a2c79b458e2a634c8 Partly revert [20969]. fix #1311 --- diff --git a/modules/control/http/mvar.c b/modules/control/http/mvar.c index 0156c8a7a2..48ddad8281 100644 --- a/modules/control/http/mvar.c +++ b/modules/control/http/mvar.c @@ -506,7 +506,7 @@ mvar_t *E_(mvar_HttpdInfoSetNew)( char *name, httpd_t *p_httpd, int i_type ) #endif mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name, - const char *value ) + const char *psz_dir ) { mvar_t *s = E_(mvar_New)( name, "set" ); #ifdef HAVE_SYS_STAT_H @@ -514,8 +514,7 @@ mvar_t *E_(mvar_FileSetNew)( intf_thread_t *p_intf, char *name, #endif char **ppsz_dir_content; int i_dir_content, i; -#warning Obvious bug here: - char *psz_dir = E_(RealPath)( p_intf, psz_dir ); + psz_dir = E_(RealPath)( p_intf, psz_dir ); #ifdef HAVE_SYS_STAT_H if( (utf8_stat( psz_dir, &stat_info ) == -1 )