aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-11-25 05:41:47 +0000
committerRichard M. Stallman1993-11-25 05:41:47 +0000
commit71f06467fd104d72d7558cd2bab7b3981c830e73 (patch)
treeef30d22c405097bb7aacf65cfcc243f57ab15639
parent5f46b51a31e37267fffae906afcab3eee582e84b (diff)
downloademacs-71f06467fd104d72d7558cd2bab7b3981c830e73.tar.gz
emacs-71f06467fd104d72d7558cd2bab7b3981c830e73.zip
(init_baud_rate): Avoid referring to sg uninitialized.
-rw-r--r--src/sysdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index ce457f63b71..94e58a354cb 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -235,7 +235,7 @@ stuff_char (c)
235#ifdef TIOCSTI 235#ifdef TIOCSTI
236 ioctl (input_fd, TIOCSTI, &c); 236 ioctl (input_fd, TIOCSTI, &c);
237#else /* no TIOCSTI */ 237#else /* no TIOCSTI */
238 error ("Cannot stuff terminal input characters in this version of Unix."); 238 error ("Cannot stuff terminal input characters in this version of Unix");
239#endif /* no TIOCSTI */ 239#endif /* no TIOCSTI */
240} 240}
241 241
@@ -257,14 +257,14 @@ init_baud_rate ()
257#ifdef HAVE_TERMIOS 257#ifdef HAVE_TERMIOS
258 struct termios sg; 258 struct termios sg;
259 259
260 sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; 260 sg.c_cflag = B9600;
261 tcgetattr (input_fd, &sg); 261 tcgetattr (input_fd, &sg);
262 ospeed = cfgetospeed (&sg); 262 ospeed = cfgetospeed (&sg);
263#else /* neither VMS nor TERMIOS */ 263#else /* neither VMS nor TERMIOS */
264#ifdef HAVE_TERMIO 264#ifdef HAVE_TERMIO
265 struct termio sg; 265 struct termio sg;
266 266
267 sg.c_cflag = (sg.c_cflag & ~CBAUD) | B9600; 267 sg.c_cflag = B9600;
268#ifdef HAVE_TCATTR 268#ifdef HAVE_TCATTR
269 tcgetattr (input_fd, &sg); 269 tcgetattr (input_fd, &sg);
270#else 270#else