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:
Uli Schlachter 2021-03-01 08:02:54 +01:00 committed by GitHub
parent 4319b16110
commit db330e0cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3582,7 +3582,7 @@ luaA_client_set_skip_taskbar(lua_State *L, client_t *c)
static int
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;
}