input: make sure ‘surf_kind’ is not uninitialized

This commit is contained in:
Daniel Eklöf 2020-12-12 21:10:28 +01:00
parent 9f321e6030
commit 602dbdb9f6
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1516,7 +1516,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
assert(term != NULL);
enum term_surface surf_kind;
enum term_surface surf_kind = TERM_SURF_NONE;
bool send_to_client = false;
if (state == WL_POINTER_BUTTON_STATE_PRESSED) {