[vlc-commits] playlist: shadowing variables

Rémi Denis-Courmont git at videolan.org
Wed Aug 13 20:29:12 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 13 20:32:57 2014 +0300| [650c84a87e2b485c643d7f559c4970aa7e22eaea] | committer: Rémi Denis-Courmont

playlist: shadowing variables

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

 src/playlist/engine.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index ebb46dc..87bb012 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -303,8 +303,8 @@ playlist_t *playlist_Create( vlc_object_t *p_parent )
     char *mods = var_InheritString( p_playlist, "services-discovery" );
     if( mods != NULL )
     {
-        char *p = mods, *m;
-        while( (m = strsep( &p, " :," )) != NULL )
+        char *s = mods, *m;
+        while( (m = strsep( &s, " :," )) != NULL )
             playlist_ServicesDiscoveryAdd( p_playlist, m );
         free( mods );
     }



More information about the vlc-commits mailing list