Merge branch 'master' into floating_panes

This commit is contained in:
Michael Grant
2026-03-09 08:31:58 +00:00
7 changed files with 29 additions and 7 deletions

View File

@@ -3752,7 +3752,7 @@ server_client_dispatch_identify(struct client *c, struct imsg *imsg)
c->term_name = xstrdup("unknown");
}
if (c->ttyname == NULL || *c->ttyname != '\0')
if (c->ttyname != NULL && *c->ttyname != '\0')
name = xstrdup(c->ttyname);
else
xasprintf(&name, "client-%ld", (long)c->pid);