mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Valgrind caught this one. If you default initialize a Trajectory, it doesn't initialize m_totalTime. This means a subsequent call to Trajectory::TotalTime() returns the value of an uninitialized variable. 3512's software was using 0_s as a sentinel value for when a trajectory was empty. We didn't notice a problem before because Linux zero-inits memory.