mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 17:23:34 +08:00
Fix uninitialized memory found using Valgrind
This commit is contained in:
@@ -3135,7 +3135,7 @@ protected:
|
||||
|
||||
if (control_mode.flag_control_position_enabled) {
|
||||
|
||||
position_setpoint_triplet_s pos_sp_triplet;
|
||||
position_setpoint_triplet_s pos_sp_triplet = {};
|
||||
_pos_sp_triplet_sub->update(&pos_sp_triplet);
|
||||
|
||||
if (pos_sp_triplet.timestamp > 0 && pos_sp_triplet.current.valid
|
||||
|
||||
Reference in New Issue
Block a user