Browse Source

HAL_Linux: fixed an error found with valgrind

sa_flags wasn't initialised
master
Andrew Tridgell 6 years ago
parent
commit
02519afdf4
  1. 2
      libraries/AP_HAL_Linux/ConsoleDevice.cpp

2
libraries/AP_HAL_Linux/ConsoleDevice.cpp

@ -42,7 +42,7 @@ bool ConsoleDevice::open() @@ -42,7 +42,7 @@ bool ConsoleDevice::open()
bool ConsoleDevice::_set_signal_handlers(void) const
{
struct sigaction sa;
struct sigaction sa {};
sigemptyset(&sa.sa_mask);
sa.sa_handler = SIG_IGN;

Loading…
Cancel
Save