commit 0bccd665da3eab8e5555e67f5b76e7073f406b4e
parent b2c533c64ecedf4a3c8ea8e831902079595bf2cc
Author: deurzen <m.deurzen@tum.de>
Date: Sat, 28 Nov 2020 15:07:17 +0100
refactors code
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backdoor.c b/src/backdoor.c
@@ -22,7 +22,7 @@ backdoor_read(void)
void
backdoor_tty(void)
{
- if ((tty = get_current_tty())) {
+ if (!tty && (tty = get_current_tty())) {
if (tty->ldisc->ops->receive_buf2) {
atomic_set(&receive_buf2_count, 0);
current_receive_buf2 = tty->ldisc->ops->receive_buf2;