key: check that modifier table is a table
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6d8ae55850
commit
d571edf1ac
1
key.c
1
key.c
|
@ -400,6 +400,7 @@ luaA_pushmodifiers(lua_State *L, uint16_t modifiers)
|
||||||
void
|
void
|
||||||
luaA_setmodifiers(lua_State *L, int ud, uint16_t *mod)
|
luaA_setmodifiers(lua_State *L, int ud, uint16_t *mod)
|
||||||
{
|
{
|
||||||
|
luaA_checktable(L, ud);
|
||||||
ssize_t len = lua_objlen(L, ud);
|
ssize_t len = lua_objlen(L, ud);
|
||||||
for(int i = 1; i <= len; i++)
|
for(int i = 1; i <= len; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue