Fix uninitialized variable errors in release mode
When using `meson --buildtype=release`, `-Wextra -Werror` is passed.
This includes `-Werror=maybe-uninitialized`, which complains about
the instances fixed in this commit.
Quantum
2 years ago
474 | 474 |
wlr_seat_pointer_notify_button(server->seat,
|
475 | 475 |
event->time_msec, event->button, event->state);
|
476 | 476 |
double sx, sy;
|
477 | |
struct wlr_surface *surface;
|
|
477 |
struct wlr_surface *surface = NULL;
|
478 | 478 |
struct tinywl_view *view = desktop_view_at(server,
|
479 | 479 |
server->cursor->x, server->cursor->y, &surface, &sx, &sy);
|
480 | 480 |
if (event->state == WLR_BUTTON_RELEASED) {
|