[vlc-commits] input: fix variable shadowing

Rémi Denis-Courmont git at videolan.org
Thu Jun 29 22:36:19 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 29 23:32:39 2017 +0300| [b8c90eff4210f019f0f2150cdf75cd36031a23fb] | committer: Rémi Denis-Courmont

input: fix variable shadowing

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

 src/input/input.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 7aa81b4c00..665a25986f 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2862,24 +2862,24 @@ static void InputGetExtraFilesPattern( input_thread_t *p_input,
         if( asprintf( &psz_probe, psz_format, psz_base, i ) < 0 )
             break;
 
-        char *psz_path = get_path( psz_probe );
+        char *filepath = get_path( psz_probe );
 
         struct stat st;
-        if( psz_path == NULL ||
-            vlc_stat( psz_path, &st ) || !S_ISREG( st.st_mode ) || !st.st_size )
+        if( filepath == NULL ||
+            vlc_stat( filepath, &st ) || !S_ISREG( st.st_mode ) || !st.st_size )
         {
-            free( psz_path );
+            free( filepath );
             free( psz_probe );
             break;
         }
 
-        msg_Dbg( p_input, "Detected extra file `%s'", psz_path );
+        msg_Dbg( p_input, "Detected extra file `%s'", filepath );
 
-        char* psz_uri = vlc_path2uri( psz_path, NULL );
+        char* psz_uri = vlc_path2uri( filepath, NULL );
         if( psz_uri )
             TAB_APPEND( i_list, ppsz_list, psz_uri );
 
-        free( psz_path );
+        free( filepath );
         free( psz_probe );
     }
     free( psz_base );



More information about the vlc-commits mailing list