diff options
author | foobar <sniper@php.net> | 2005-01-25 13:42:52 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-01-25 13:42:52 +0000 |
commit | af854a84099614ed3609267a4623554451c81d12 (patch) | |
tree | 9786dbcdd4a1be693b61694073e25e06f2f5cba5 | |
parent | 601140cbe9ab057b3c8162dda09e18d741652599 (diff) | |
download | php-git-af854a84099614ed3609267a4623554451c81d12.tar.gz |
- Fixed bug #31684 (dio_tcsetattr(): misconfigured termios settings)
-rw-r--r-- | ext/dio/dio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dio/dio.c b/ext/dio/dio.c index 2542859eae..0435957f05 100644 --- a/ext/dio/dio.c +++ b/ext/dio/dio.c @@ -611,6 +611,8 @@ PHP_FUNCTION(dio_tcsetattr) RETURN_FALSE; } + memset(&newtio, 0, sizeof(newtio)); + tcgetattr(f->fd, &newtio); newtio.c_cflag = BAUD | CRTSCTS | DATABITS | STOPBITS | PARITYON | PARITY | CLOCAL | CREAD; newtio.c_iflag = IGNPAR; newtio.c_oflag = 0; |