diff --git a/tty.c b/tty.c index 01d8c3ea8..38a95ec99 100644 --- a/tty.c +++ b/tty.c @@ -1092,7 +1092,7 @@ int tty_setup_slavery(void) peer = info; list_for_each_entry_safe_continue(peer, m, &all_ttys, list) { - if (peer->type == TTY_TYPE_CONSOLE || info->type == TTY_TYPE_VT) + if (peer->type == TTY_TYPE_CONSOLE || peer->type == TTY_TYPE_VT) continue; if (peer->tie->pty->index != info->tie->pty->index) continue;