[vlc-devel] [PATCH 07/10] misc/image: narrow scope of iteration variable

Filip Roséen filip at atch.se
Mon Oct 10 18:17:59 CEST 2016


---
 src/misc/image.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/misc/image.c b/src/misc/image.c
index 05dc137..b223edd 100644
--- a/src/misc/image.c
+++ b/src/misc/image.c
@@ -593,8 +593,7 @@ static const struct
 
 vlc_fourcc_t image_Mime2Fourcc( const char *psz_mime )
 {
-    int i;
-    for( i = 0; mime_table[i].i_codec; i++ )
+    for( int i = 0; mime_table[i].i_codec; i++ )
         if( !strcmp( psz_mime, mime_table[i].psz_mime ) )
             return mime_table[i].i_codec;
     return 0;
-- 
2.10.0



More information about the vlc-devel mailing list