From 31bf9857bf400f283e072f053d33f6e210f698b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 20 May 2008 18:52:22 +0300 Subject: [PATCH] Don't test if a directory exists twice in a row Better yet try to parse it directly... --- modules/control/http/http.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/control/http/http.c b/modules/control/http/http.c index 17377229f4..92d08392ae 100644 --- a/modules/control/http/http.c +++ b/modules/control/http/http.c @@ -100,9 +100,6 @@ int ArtCallback( httpd_handler_sys_t *p_args, #if !defined(__APPLE__) && !defined(SYS_BEOS) && !defined(WIN32) static int DirectoryCheck( const char *psz_dir ) { - DIR *p_dir; - -#ifdef HAVE_SYS_STAT_H struct stat stat_info; if( ( utf8_stat( psz_dir, &stat_info ) == -1 ) @@ -110,14 +107,6 @@ static int DirectoryCheck( const char *psz_dir ) { return VLC_EGENERIC; } -#endif - - if( ( p_dir = utf8_opendir( psz_dir ) ) == NULL ) - { - return VLC_EGENERIC; - } - closedir( p_dir ); - return VLC_SUCCESS; } #endif -- 2.39.5