diff --git a/src/multimeter.c b/src/multimeter.c
index 6953750525ce34cd2f4e50de26af4cfa6f6949e3..00e9964b85f82718d104c7d4bce8688c702ba6b2 100644 (file)
--- a/src/multimeter.c
+++ b/src/multimeter.c
if ((fd = open(device, O_RDWR | O_NOCTTY)) != -1)
{
- struct termios tios;
+ struct termios tios = { 0 };
int rts = TIOCM_RTS;
double value;
- memset (&tios, 0, sizeof (tios));
tios.c_cflag = B1200 | CS7 | CSTOPB | CREAD | CLOCAL;
tios.c_iflag = IGNBRK | IGNPAR;
tios.c_oflag = 0;