aboutsummaryrefslogtreecommitdiff
path: root/cmd-choose-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-choose-client.c')
-rw-r--r--cmd-choose-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-choose-client.c b/cmd-choose-client.c
index ce569ff4..40752a70 100644
--- a/cmd-choose-client.c
+++ b/cmd-choose-client.c
@@ -79,7 +79,7 @@ cmd_choose_client_exec(struct cmd *self, struct cmd_q *cmdq)
cur = idx = 0;
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
c1 = ARRAY_ITEM(&clients, i);
- if (c1 == NULL || c1->session == NULL)
+ if (c1 == NULL || c1->session == NULL || c1->tty.path == NULL)
continue;
if (c1 == cmdq->client)
cur = idx;