diff --git a/src/xrt/auxiliary/tracking/t_tracker_slam.cpp b/src/xrt/auxiliary/tracking/t_tracker_slam.cpp index 7123f583a..64a88648f 100644 --- a/src/xrt/auxiliary/tracking/t_tracker_slam.cpp +++ b/src/xrt/auxiliary/tracking/t_tracker_slam.cpp @@ -730,7 +730,7 @@ static bool 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); if (vres != VIT_SUCCESS) { SLAM_ERROR("Failed to get pose from VIT tracker");