X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmultimeter.c;h=00e9964b85f82718d104c7d4bce8688c702ba6b2;hb=d26dd5c1db5c3310c9e69b2b910c6547469c99ce;hp=03608e6cfe5e61110e13552f43f7fd8e5963c46c;hpb=8dfaf98cde62e42d4c245400c68ae9c825a2fe68;p=collectd.git diff --git a/src/multimeter.c b/src/multimeter.c index 03608e6c..00e9964b 100644 --- a/src/multimeter.c +++ b/src/multimeter.c @@ -157,13 +157,13 @@ static int multimeter_init (void) if ((fd = open(device, O_RDWR | O_NOCTTY)) != -1) { - struct termios tios; + struct termios tios = { 0 }; int rts = TIOCM_RTS; double value; tios.c_cflag = B1200 | CS7 | CSTOPB | CREAD | CLOCAL; tios.c_iflag = IGNBRK | IGNPAR; - tios.c_oflag = 0; + tios.c_oflag = 0; tios.c_lflag = 0; tios.c_cc[VTIME] = 3; tios.c_cc[VMIN] = LINE_LENGTH;