From 02519afdf472ddecbbefe8e1b1ef10a6dc06da4d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Nov 2018 17:10:25 +1100 Subject: [PATCH] HAL_Linux: fixed an error found with valgrind sa_flags wasn't initialised --- libraries/AP_HAL_Linux/ConsoleDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/ConsoleDevice.cpp b/libraries/AP_HAL_Linux/ConsoleDevice.cpp index 0c52a6167d..b244b7f250 100644 --- a/libraries/AP_HAL_Linux/ConsoleDevice.cpp +++ b/libraries/AP_HAL_Linux/ConsoleDevice.cpp @@ -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;