mirror of
https://github.com/tmux/tmux.git
synced 2026-03-07 08:15:36 +00:00
Merge branch 'obsd-master'
This commit is contained in:
@@ -3708,7 +3708,7 @@ server_client_dispatch_identify(struct client *c, struct imsg *imsg)
|
|||||||
c->term_name = xstrdup("unknown");
|
c->term_name = xstrdup("unknown");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c->ttyname == NULL || *c->ttyname != '\0')
|
if (c->ttyname != NULL && *c->ttyname != '\0')
|
||||||
name = xstrdup(c->ttyname);
|
name = xstrdup(c->ttyname);
|
||||||
else
|
else
|
||||||
xasprintf(&name, "client-%ld", (long)c->pid);
|
xasprintf(&name, "client-%ld", (long)c->pid);
|
||||||
|
|||||||
Reference in New Issue
Block a user