Fix uninitialized `termios.c_line'.

This commit is contained in:
Jan Kratochvil 2009-06-09 10:07:45 +00:00
parent 426ff34819
commit f6bd5cf63a
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ static int spawn (char **argv)
termios.c_oflag = 0;
termios.c_cflag = CS8 | CREAD | CLOCAL | HUPCL | B9600;
termios.c_lflag = IEXTEN | NOFLSH;
termios.c_line = 0;
memset (termios.c_cc, _POSIX_VDISABLE, sizeof (termios.c_cc));
termios.c_cc[VTIME] = 0;
termios.c_cc[VMIN ] = 1;