Properly initialize termios struct before use in ttynvt_open()
This commit is contained in:
@@ -470,6 +470,8 @@ static void ttynvt_open(fuse_req_t req, struct fuse_file_info *info)
|
||||
tty->fds[FD_MASTER].fd = fd;
|
||||
tty->fds[FD_MASTER].events = POLLIN;
|
||||
|
||||
memset(&ios, 0, sizeof(ios));
|
||||
|
||||
ios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP
|
||||
| INLCR | IGNCR | ICRNL | IXON);
|
||||
ios.c_oflag &= ~OPOST;
|
||||
|
||||
Reference in New Issue
Block a user