aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-12-12 20:10:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-12-12 20:10:28 +0000
commit602dbdb9f67983e0827f20a412a847ae8713863f (patch)
tree21ec7075fc477c9f35069445ff0c418d5990fa2c /input.c
parentcsi: fix sub-parameter versions of 38/48 SGR escapes (diff)
input: make sure ‘surf_kind’ is not uninitialized
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
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) {