Initialise variables to prevent warning

This commit is contained in:
Simon Long 2024-10-20 13:10:24 +01:00
parent 5cba33a64c
commit eddf67c86d

View file

@ -100,7 +100,7 @@ handle_touch_down(struct wl_listener *listener, void *data)
/* Compute layout => surface offset and save for this touch point */
struct touch_point *touch_point = znew(*touch_point);
double x_offset, y_offset;
double x_offset = 0.0, y_offset = 0.0;
touch_point->surface = touch_get_coords(seat, event->touch,
event->x, event->y, &x_offset, &y_offset);
touch_point->touch_id = event->touch_id;