[vlc-commits] mod: avoid variable shadowing

Rémi Denis-Courmont git at videolan.org
Sun Jul 23 16:53:39 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 23 16:47:22 2017 +0300| [e058fa88e302e75056c362b83938fa6f1c6b34ef] | committer: Rémi Denis-Courmont

mod: avoid variable shadowing

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

 modules/demux/mod.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mod.c b/modules/demux/mod.c
index c5068f6b24..1bc89b77b2 100644
--- a/modules/demux/mod.c
+++ b/modules/demux/mod.c
@@ -576,7 +576,7 @@ static int Validate( demux_t *p_demux, const char *psz_ext )
             const uint8_t *p_sample = &p_peek[20 + i*30];
 
             /* Check correct null padding */
-            const uint8_t *p = memchr( &p_sample[0], '\0', 22 );
+            p = memchr( &p_sample[0], '\0', 22 );
             if( p )
             {
                 for( ; p < &p_sample[22]; p++ )



More information about the vlc-commits mailing list