Fix an operator precedence warning from clang.

This commit is contained in:
John Hood 2024-03-09 06:20:11 -05:00
parent cf07739dae
commit d8b3df77ec

View File

@ -672,7 +672,7 @@ static int tiocgpgrp(struct tty *tty, pid_t_ *fg_group) {
lock(&slave->lock);
}
if (tty == slave && !tty_is_current(slave) || slave->fg_group == 0) {
if (tty == slave && (!tty_is_current(slave) || slave->fg_group == 0)) {
err = _ENOTTY;
goto error_no_ctrl_tty;
}