[vlc-commits] telx: fix variable shadowing
    Rémi Denis-Courmont 
    git at videolan.org
       
    Sun Jul 23 16:53:10 CEST 2017
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 16:36:41 2017 +0300| [9ac9e22b7daeb6e9c29edac6e8b63d18ebea1403] | committer: Rémi Denis-Courmont
telx: fix variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ac9e22b7daeb6e9c29edac6e8b63d18ebea1403
---
 modules/codec/telx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/telx.c b/modules/codec/telx.c
index 6644fa32c4..b0a4e773f2 100644
--- a/modules/codec/telx.c
+++ b/modules/codec/telx.c
@@ -442,7 +442,7 @@ static int Decode( decoder_t *p_dec, block_t *p_block )
     bool b_update = false;
     char psz_text[512], *pt = psz_text;
     char psz_line[256];
-    int i, total;
+    int total;
 
     if( p_block == NULL ) /* No Drain */
         return VLCDEC_SUCCESS;
@@ -647,7 +647,7 @@ static int Decode( decoder_t *p_dec, block_t *p_block )
         goto error;
 
     total = 0;
-    for ( i = 1; i < 24; i++ )
+    for ( int i = 1; i < 24; i++ )
     {
         size_t l = strlen( p_sys->ppsz_lines[i] );
 
    
    
More information about the vlc-commits
mailing list