Properly initialize termios struct before use in ttynvt_open()

This commit is contained in:
Kim Woelders
2018-10-16 07:46:04 +02:00
parent 2fe0428d92
commit ef3d01556e
+2
View File
@@ -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].fd = fd;
tty->fds[FD_MASTER].events = POLLIN; tty->fds[FD_MASTER].events = POLLIN;
memset(&ios, 0, sizeof(ios));
ios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP ios.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP
| INLCR | IGNCR | ICRNL | IXON); | INLCR | IGNCR | ICRNL | IXON);
ios.c_oflag &= ~OPOST; ios.c_oflag &= ~OPOST;