Skip to content

Commit

Permalink
Merge branch '2452_handle_baudrate_error'
Browse files Browse the repository at this point in the history
Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Nov 5, 2024
2 parents ea8e239 + 8b84190 commit c5b8b69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filemanager/filemanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c5b8b69

Please sign in to comment.