# HG changeset patch # User Richard M. Stallman # Date 754206107 0 # Node ID 6ac5c999a7cc2eb37f480840fdfab91b77507b0a # Parent 7e66b092f33179bf4c47d0a9385eda5570181770 (init_baud_rate): Avoid referring to sg uninitialized. diff -r 7e66b092f331 -r 6ac5c999a7cc src/sysdep.c --- a/src/sysdep.c Thu Nov 25 04:14:10 1993 +0000 +++ b/src/sysdep.c Thu Nov 25 05:41:47 1993 +0000 @@ -235,7 +235,7 @@ #ifdef TIOCSTI ioctl (input_fd, TIOCSTI, &c); #else /* no TIOCSTI */ - error ("Cannot stuff terminal input characters in this version of Unix."); + error ("Cannot stuff terminal input characters in this version of Unix"); #endif /* no TIOCSTI */ } @@ -257,14 +257,14 @@ #ifdef HAVE_TERMIOS struct termios sg; - sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; + sg.c_cflag = B9600; tcgetattr (input_fd, &sg); ospeed = cfgetospeed (&sg); #else /* neither VMS nor TERMIOS */ #ifdef HAVE_TERMIO struct termio sg; - sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; + sg.c_cflag = B9600; #ifdef HAVE_TCATTR tcgetattr (input_fd, &sg); #else