From eddf67c86da249faedc1c90ffe645e0108651929 Mon Sep 17 00:00:00 2001 From: Simon Long Date: Sun, 20 Oct 2024 13:10:24 +0100 Subject: [PATCH] Initialise variables to prevent warning --- src/input/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/touch.c b/src/input/touch.c index eddc1e27..ef85a18b 100644 --- a/src/input/touch.c +++ b/src/input/touch.c @@ -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;