Commit 189185bf authored by Rémi Duraffort's avatar Rémi Duraffort

lua: cleanup

parent 94b3251f
...@@ -46,8 +46,7 @@ ...@@ -46,8 +46,7 @@
static int vlclua_config_get( lua_State *L ) static int vlclua_config_get( lua_State *L )
{ {
vlc_object_t * p_this = vlclua_get_this( L ); vlc_object_t * p_this = vlclua_get_this( L );
const char *psz_name; const char *psz_name = luaL_checkstring( L, 1 );
psz_name = luaL_checkstring( L, 1 );
switch( config_GetType( p_this, psz_name ) ) switch( config_GetType( p_this, psz_name ) )
{ {
case VLC_VAR_STRING: case VLC_VAR_STRING:
...@@ -80,8 +79,7 @@ static int vlclua_config_get( lua_State *L ) ...@@ -80,8 +79,7 @@ static int vlclua_config_get( lua_State *L )
static int vlclua_config_set( lua_State *L ) static int vlclua_config_set( lua_State *L )
{ {
vlc_object_t *p_this = vlclua_get_this( L ); vlc_object_t *p_this = vlclua_get_this( L );
const char *psz_name; const char *psz_name = luaL_checkstring( L, 1 );
psz_name = luaL_checkstring( L, 1 );
switch( config_GetType( p_this, psz_name ) ) switch( config_GetType( p_this, psz_name ) )
{ {
case VLC_VAR_STRING: case VLC_VAR_STRING:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment