Skip to content

Commit c5b8b69

Browse files
committed
Merge branch '2452_handle_baudrate_error'
Signed-off-by: Yury V. Zaytsev <[email protected]>
2 parents ea8e239 + 8b84190 commit c5b8b69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/filemanager/filemanager.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,8 @@ setup_mc (void)
854854
#endif /* HAVE_CHARSET */
855855
#endif /* HAVE_SLANG */
856856

857-
if ((tty_baudrate () < 9600) || mc_global.tty.slow_terminal)
857+
const int baudrate = tty_baudrate ();
858+
if ((baudrate > 0 && baudrate < 9600) || mc_global.tty.slow_terminal)
858859
verbose = FALSE;
859860
}
860861

0 commit comments

Comments
 (0)