lib/media_list: narrow scope of iteration variable
authorFilip Roséen <filip@atch.se>
Wed, 12 Oct 2016 18:08:02 +0000 (20:08 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Oct 2016 09:09:29 +0000 (11:09 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
lib/media_list.c

index 455eb36..430fa42 100644 (file)
@@ -443,8 +443,7 @@ int libvlc_media_list_index_of_item( libvlc_media_list_t * p_mlist,
                                      libvlc_media_t * p_searched_md )
 {
     libvlc_media_t * p_md;
-    int i;
-    for ( i = 0; i < vlc_array_count( &p_mlist->items ); i++ )
+    for ( int i = 0; i < vlc_array_count( &p_mlist->items ); i++ )
     {
         p_md = vlc_array_item_at_index( &p_mlist->items, i );
         if( p_searched_md == p_md )