mirror of
https://github.com/tmux/tmux.git
synced 2026-03-07 00:05:33 +00:00
Fix incorrect condition for creating client name, from Vlad Apostol in
GitHub issue 4911.
This commit is contained in:
@@ -3712,7 +3712,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);
|
||||
|
||||
Reference in New Issue
Block a user