From e334b46b39ee38ac87da3f83b633a1c67091b7c3 Mon Sep 17 00:00:00 2001 From: Aidan Epstein Date: Fri, 31 Aug 2018 23:36:38 +0000 Subject: [PATCH] Fix uninitialized value in wlr_cursor. --- types/wlr_cursor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index 19b3a51a..49f11b20 100644 --- a/types/wlr_cursor.c +++ b/types/wlr_cursor.c @@ -332,7 +332,7 @@ static void handle_pointer_motion(struct wl_listener *listener, void *data) { static void apply_output_transform(double *x, double *y, enum wl_output_transform transform) { - double dx, dy; + double dx = 0.0, dy = 0.0; double width = 1.0, height = 1.0; switch (transform) {