diff options
author | emersion <contact@emersion.fr> | 2018-05-04 16:56:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 16:56:53 +0100 |
commit | 2959fcce1ac410904ebb2d1b11bbc954d0c00c26 (patch) | |
tree | 2fc53c63df751406d276c809a7b7168c80344a97 | |
parent | 57d03a3edab2de807780b0cae6ce12ea3ba11a2f (diff) | |
parent | cec7cd2b395396d9a11a2d0155601406b0b5b5aa (diff) |
Merge pull request #951 from chebykinn/fix-maybe-uninitialized
Fix gcc maybe-uninitialized in wlr_cursor apply_output_transform
-rw-r--r-- | types/wlr_cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_cursor.c b/types/wlr_cursor.c index d8a7fa08..9a31fca2 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 = *x, dy = *y; double width = 1.0, height = 1.0; switch (transform) { |