[vlc-commits] dynamicoverlay: fix variable shadowing

Rémi Denis-Courmont git at videolan.org
Sun Mar 3 16:52:29 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar  3 17:20:04 2019 +0200| [d42e05d6b2c061ae352c131d5aebf8c8d8aa6d35] | committer: Rémi Denis-Courmont

dynamicoverlay: fix variable shadowing

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

 modules/spu/dynamicoverlay/dynamicoverlay_commands.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/spu/dynamicoverlay/dynamicoverlay_commands.c b/modules/spu/dynamicoverlay/dynamicoverlay_commands.c
index 16c5844450..31160d2ec8 100644
--- a/modules/spu/dynamicoverlay/dynamicoverlay_commands.c
+++ b/modules/spu/dynamicoverlay/dynamicoverlay_commands.c
@@ -903,12 +903,11 @@ static const commanddesc_static_t p_commands[] =
 void RegisterCommand( filter_t *p_filter )
 {
     filter_sys_t *p_sys = p_filter->p_sys;
-    size_t i_index = 0;
 
     p_sys->i_commands = ARRAY_SIZE(p_commands);
     p_sys->pp_commands = (commanddesc_t **) calloc( p_sys->i_commands, sizeof(commanddesc_t*) );
     if( !p_sys->pp_commands ) return;
-    for( i_index = 0; i_index < p_sys->i_commands; i_index ++ )
+    for( size_t i_index = 0; i_index < p_sys->i_commands; i_index ++ )
     {
         p_sys->pp_commands[i_index] = (commanddesc_t *) malloc( sizeof(commanddesc_t) );
         if( !p_sys->pp_commands[i_index] ) return;



More information about the vlc-commits mailing list