mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
tty.path can be NULL, don't dereference it. From George Nachman.
This commit is contained in:
parent
2c14a771a8
commit
e2e85650ac
@ -79,7 +79,7 @@ cmd_choose_client_exec(struct cmd *self, struct cmd_q *cmdq)
|
|||||||
cur = idx = 0;
|
cur = idx = 0;
|
||||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||||
c1 = ARRAY_ITEM(&clients, i);
|
c1 = ARRAY_ITEM(&clients, i);
|
||||||
if (c1 == NULL || c1->session == NULL)
|
if (c1 == NULL || c1->session == NULL || c1->tty.path == NULL)
|
||||||
continue;
|
continue;
|
||||||
if (c1 == cmdq->client)
|
if (c1 == cmdq->client)
|
||||||
cur = idx;
|
cur = idx;
|
||||||
|
Loading…
Reference in New Issue
Block a user