diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/termios.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/termios.c b/Modules/termios.c index c4f0fd9..69dbd88 100644 --- a/Modules/termios.c +++ b/Modules/termios.c @@ -98,6 +98,8 @@ termios_tcgetattr_impl(PyObject *module, int fd) struct termios mode; int r; + /* Alpine Linux can leave some fields uninitialized. */ + memset(&mode, 0, sizeof(mode)); Py_BEGIN_ALLOW_THREADS r = tcgetattr(fd, &mode); Py_END_ALLOW_THREADS |