Make sure that c.name is never nil (#3251)
Fixes: https://github.com/awesomeWM/awesome/issues/3248 Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
4319b16110
commit
db330e0cfe
|
@ -3582,7 +3582,7 @@ luaA_client_set_skip_taskbar(lua_State *L, client_t *c)
|
||||||
static int
|
static int
|
||||||
luaA_client_get_name(lua_State *L, client_t *c)
|
luaA_client_get_name(lua_State *L, client_t *c)
|
||||||
{
|
{
|
||||||
lua_pushstring(L, c->name ? c->name : c->alt_name);
|
lua_pushstring(L, NONULL(c->name ? c->name : c->alt_name));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue