[vlc-commits] lua: cleanup

Rémi Duraffort git at videolan.org
Wed Jul 13 11:10:53 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jul 11 15:33:48 2011 +0200| [189185bf0c4ad3572dd549c75290124bfb1b3dbd] | committer: Rémi Duraffort

lua: cleanup

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

 modules/lua/libs/configuration.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/lua/libs/configuration.c b/modules/lua/libs/configuration.c
index e0fa360..7a4785f 100644
--- a/modules/lua/libs/configuration.c
+++ b/modules/lua/libs/configuration.c
@@ -46,8 +46,7 @@
 static int vlclua_config_get( lua_State *L )
 {
     vlc_object_t * p_this = vlclua_get_this( L );
-    const char *psz_name;
-    psz_name = luaL_checkstring( L, 1 );
+    const char *psz_name = luaL_checkstring( L, 1 );
     switch( config_GetType( p_this, psz_name ) )
     {
         case VLC_VAR_STRING:
@@ -80,8 +79,7 @@ static int vlclua_config_get( lua_State *L )
 static int vlclua_config_set( lua_State *L )
 {
     vlc_object_t *p_this = vlclua_get_this( L );
-    const char *psz_name;
-    psz_name = luaL_checkstring( L, 1 );
+    const char *psz_name = luaL_checkstring( L, 1 );
     switch( config_GetType( p_this, psz_name ) )
     {
         case VLC_VAR_STRING:



More information about the vlc-commits mailing list