]> git.sesse.net Git - vlc/commitdiff
Probably a fix for crap compilers
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 31 Mar 2006 21:21:49 +0000 (21:21 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 31 Mar 2006 21:21:49 +0000 (21:21 +0000)
src/input/subtitles.c

index 9aaf5e16f31626b9576b40c6582f3f73b280d0ed..c6f29210b4c167445ce620581977ce4b2c8210f2 100644 (file)
@@ -362,15 +362,15 @@ char **subtitles_Detect( input_thread_t *p_this, char *psz_path,
             {
                 char *psz_name = vlc_fix_readdir_charset( p_this,
                                                           ppsz_dir_content[a] );
+                char tmp_fname_noext[strlen( psz_name ) + 1];
+                char tmp_fname_trim[strlen( psz_name ) + 1];
+                char tmp_fname_ext[strlen( psz_name ) + 1];
+
                 int i_prio = 0;
 
                 if( psz_name == NULL )
                     continue;
 
-                char tmp_fname_noext[strlen( psz_name ) + 1];
-                char tmp_fname_trim[strlen( psz_name ) + 1];
-                char tmp_fname_ext[strlen( psz_name ) + 1];
-
                 /* retrieve various parts of the filename */
                 strcpy_strip_ext( tmp_fname_noext, psz_name );
                 strcpy_get_ext( tmp_fname_ext, psz_name );