Commit 71f06467 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(init_baud_rate): Avoid referring to sg uninitialized.

parent 5f46b51a
......@@ -235,7 +235,7 @@ stuff_char (c)
#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 @@ init_baud_rate ()
#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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment