t/slam: Fix uninitialized pointer

Closes #317
This commit is contained in:
Mateo de Mayo 2024-01-22 16:25:07 -03:00
parent bc8025a6bd
commit 93ad858d18

View file

@ -730,7 +730,7 @@ static bool
flush_poses(TrackerSlam &t) flush_poses(TrackerSlam &t)
{ {
vit_pose_t *pose; vit_pose_t *pose = NULL;
vit_result_t vres = t.vit.tracker_pop_pose(t.tracker, &pose); vit_result_t vres = t.vit.tracker_pop_pose(t.tracker, &pose);
if (vres != VIT_SUCCESS) { if (vres != VIT_SUCCESS) {
SLAM_ERROR("Failed to get pose from VIT tracker"); SLAM_ERROR("Failed to get pose from VIT tracker");