mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-29 13:01:52 -06:00
chardev: ensure termios is fully initialized
valgrind on the test-char.c code reports that 'struct termios' contains uninitialized memory. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20190211182442.8542-17-berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
9baa6802fe
commit
211ef6c4b6
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ static void qmp_chardev_open_serial(Chardev *chr,
|
||||||
static void tty_serial_init(int fd, int speed,
|
static void tty_serial_init(int fd, int speed,
|
||||||
int parity, int data_bits, int stop_bits)
|
int parity, int data_bits, int stop_bits)
|
||||||
{
|
{
|
||||||
struct termios tty;
|
struct termios tty = {0};
|
||||||
speed_t spd;
|
speed_t spd;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue