]> git.sesse.net Git - vlc/commitdiff
lua: cleanup
authorRémi Duraffort <ivoire@videolan.org>
Mon, 11 Jul 2011 13:33:48 +0000 (15:33 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Wed, 13 Jul 2011 08:48:03 +0000 (10:48 +0200)
modules/lua/libs/configuration.c

index e0fa3608b64c277e205f0a2691a1cbcdaed167fe..7a4785fbba5aab8654baf5960487c3c0126bf91d 100644 (file)
@@ -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: