From 1b007151e42366c19e0835bca82338a59b3cf107 Mon Sep 17 00:00:00 2001 From: Cedric GESTES Date: Fri, 4 Sep 2009 13:55:21 +0200 Subject: [PATCH] client: check for nil geometry Signed-off-by: Cedric GESTES Signed-off-by: Julien Danjou --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 99509580..1000e2bf 100644 --- a/client.c +++ b/client.c @@ -1599,7 +1599,7 @@ luaA_client_geometry(lua_State *L) { 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;