client: check for nil geometry

Signed-off-by: Cedric GESTES <ctaf42@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Cedric GESTES 2009-09-04 13:55:21 +02:00 committed by Julien Danjou
parent 2b75950a8c
commit 1b007151e4
1 changed files with 1 additions and 1 deletions

View File

@ -1599,7 +1599,7 @@ luaA_client_geometry(lua_State *L)
{ {
client_t *c = luaA_client_checkudata(L, 1); client_t *c = luaA_client_checkudata(L, 1);
if(lua_gettop(L) == 2) if(lua_gettop(L) == 2 && !lua_isnil(L, 2))
{ {
area_t geometry; area_t geometry;