vlc | branch: master | Filip Roséen <fi...@atch.se> | Wed Oct 12 20:08:02 2016 
+0200| [ec1bc03c412446b25c9d945e0ef498c6473fac26] | committer: Jean-Baptiste 
Kempf

lib/media_list: narrow scope of iteration variable

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec1bc03c412446b25c9d945e0ef498c6473fac26
---

 lib/media_list.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/media_list.c b/lib/media_list.c
index 455eb36..430fa42 100644
--- a/lib/media_list.c
+++ b/lib/media_list.c
@@ -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 )

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to