diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-10-28 19:52:08 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-10-28 19:52:08 +0100 |
| commit | 660dc316c08551acfd8324f5fb03f02961df6725 (patch) | |
| tree | 54ea61640852e18c68154e64d0bbc2f9c84be842 | |
| parent | a86d1befde4be2e0fc8f4136a4d3c41a30686106 (diff) | |
| parent | 5ab28bb560c1908afbc9c99f2475af1cf0e2d569 (diff) | |
Merge pull request #3016 from mwenzkowski/fix-uninitialized-pointer
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, void cursor_rebase(struct sway_cursor *cursor) { uint32_t time_msec = get_current_time_msec(); - struct wlr_surface *surface; + struct wlr_surface *surface = NULL; double sx, sy; cursor->previous.node = node_at_coords(cursor->seat, cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy); |
