[vlc-commits] lua: remove unused variable and no-op assignment

Pierre Ynard git at videolan.org
Wed Nov 2 07:11:11 CET 2016


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Wed Nov  2 07:09:29 2016 +0100| [e68d413dcbc3762fb08b2702e48d112d375e73a3] | committer: Pierre Ynard

lua: remove unused variable and no-op assignment

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

 modules/lua/vlc.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/lua/vlc.c b/modules/lua/vlc.c
index 651a20d..a733ddf 100644
--- a/modules/lua/vlc.c
+++ b/modules/lua/vlc.c
@@ -492,7 +492,6 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
                 {
                     char         *psz_oldurl   = NULL;
                     const char   *psz_path     = NULL;
-                    char         *psz_u8path   = NULL;
                     const char   *psz_name     = NULL;
                     char        **ppsz_options = NULL;
                     int           i_options    = 0;
@@ -517,7 +516,6 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
                     {
                         if( !lua_isnil( L, -1 ) )
                             msg_Warn( p_this, "Playlist item name should be a string." );
-                        psz_name = NULL;
                     }
 
                     /* Read duration */
@@ -589,7 +587,6 @@ int vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
                     while( i_options > 0 )
                         free( ppsz_options[--i_options] );
                     free( ppsz_options );
-                    free( psz_u8path );
                 }
                 else
                 {



More information about the vlc-commits mailing list