diff options
author | mwenzkowski <29407878+mwenzkowski@users.noreply.github.com> | 2018-10-28 17:33:27 +0100 |
---|---|---|
committer | mwenzkowski <29407878+mwenzkowski@users.noreply.github.com> | 2018-10-28 17:33:27 +0100 |
commit | 66ae58d62a03d8e301263bbe6243855402203293 (patch) | |
tree | 0179d22378789efa5b308ea28ce0d6e0c1651af6 | |
parent | Merge pull request #3011 from Emantor/fix/2922 (diff) | |
download | sway-66ae58d62a03d8e301263bbe6243855402203293.tar.gz sway-66ae58d62a03d8e301263bbe6243855402203293.tar.zst sway-66ae58d62a03d8e301263bbe6243855402203293.zip |
cursor: fix uninitialized pointer in cursor_rebase
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 3942b64f..7ede48bf 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -585,7 +585,7 @@ static void cursor_do_rebase(struct sway_cursor *cursor, uint32_t time_msec, | |||
585 | 585 | ||
586 | void cursor_rebase(struct sway_cursor *cursor) { | 586 | void cursor_rebase(struct sway_cursor *cursor) { |
587 | uint32_t time_msec = get_current_time_msec(); | 587 | uint32_t time_msec = get_current_time_msec(); |
588 | struct wlr_surface *surface; | 588 | struct wlr_surface *surface = NULL; |
589 | double sx, sy; | 589 | double sx, sy; |
590 | cursor->previous.node = node_at_coords(cursor->seat, | 590 | cursor->previous.node = node_at_coords(cursor->seat, |
591 | cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy); | 591 | cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy); |