Merge branch '2452_handle_baudrate_error'

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-11-05 14:23:27 +01:00
commit c5b8b69371

View File

@ -854,7 +854,8 @@ setup_mc (void)
#endif /* HAVE_CHARSET */
#endif /* HAVE_SLANG */
if ((tty_baudrate () < 9600) || mc_global.tty.slow_terminal)
const int baudrate = tty_baudrate ();
if ((baudrate > 0 && baudrate < 9600) || mc_global.tty.slow_terminal)
verbose = FALSE;
}