screen: use checkudata()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-07-13 14:23:22 +02:00
parent cd862e80cd
commit e02384e4fe
1 changed files with 1 additions and 4 deletions

View File

@ -366,10 +366,7 @@ static int
luaA_screen_tags(lua_State *L) luaA_screen_tags(lua_State *L)
{ {
int i; int i;
screen_t *s = lua_touserdata(L, 1); screen_t *s = luaL_checkudata(L, 1, "screen");
if(!s)
luaL_typerror(L, 1, "screen");
if(lua_gettop(L) == 2) if(lua_gettop(L) == 2)
{ {