st/gui: Fix warning (false positive)

This commit is contained in:
Jakob Bornecrantz 2021-04-15 17:35:45 +01:00
parent 26756cc52d
commit f434de27bd

View file

@ -212,7 +212,7 @@ scene_render(struct gui_scene *scene, struct gui_program *p)
struct xrt_tracking_override *o = &ts->overrides[ts->editing_override];
igBegin("Tracker Device Offset", NULL, 0);
int target, tracker;
int target = 0, tracker = 0;
if (get_indices(p, ts, o, &target, &tracker)) {
igText("Editing %s [%s] <- %s [%s]", p->xdevs[target]->str, o->target_device_serial,
p->xdevs[tracker]->str, o->tracker_device_serial);