From 2ce3ef1caa06a647e01bdbf8c004c688a28bbc43 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 5 Jan 2016 22:10:32 +0100 Subject: [PATCH] VTOL: initialize fds struct --- src/modules/vtol_att_control/vtol_att_control_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/vtol_att_control/vtol_att_control_main.cpp b/src/modules/vtol_att_control/vtol_att_control_main.cpp index f21ed3fe52..65ab5f6233 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.cpp +++ b/src/modules/vtol_att_control/vtol_att_control_main.cpp @@ -559,7 +559,7 @@ void VtolAttitudeControl::task_main() _vtol_type->set_idle_mc(); /* wakeup source*/ - px4_pollfd_struct_t fds[3]; /*input_mc, input_fw, parameters*/ + px4_pollfd_struct_t fds[3] = {}; /*input_mc, input_fw, parameters*/ fds[0].fd = _actuator_inputs_mc; fds[0].events = POLLIN;