key: check that modifier table is a table

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-27 14:13:54 +02:00
parent 6d8ae55850
commit d571edf1ac
1 changed files with 1 additions and 0 deletions

1
key.c
View File

@ -400,6 +400,7 @@ luaA_pushmodifiers(lua_State *L, uint16_t modifiers)
void
luaA_setmodifiers(lua_State *L, int ud, uint16_t *mod)
{
luaA_checktable(L, ud);
ssize_t len = lua_objlen(L, ud);
for(int i = 1; i <= len; i++)
{