From 602dbdb9f67983e0827f20a412a847ae8713863f Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 12 Dec 2020 21:10:28 +0100 Subject: input: make sure ‘surf_kind’ is not uninitialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input.c b/input.c index 38271d3b..2c858bc6 100644 --- a/input.c +++ b/input.c @@ -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) { -- cgit v1.3