diff --git a/src/tty.c b/src/tty.c index 1b73caa..e767242 100644 --- a/src/tty.c +++ b/src/tty.c @@ -546,8 +546,8 @@ void tty_wait_for_device(void) } /* Test for accessible device file */ - int rc = access(option.tty_device, R_OK); - if (rc == 0) { + status = access(option.tty_device, R_OK); + if (status == 0) { last_errno = 0; return; }