aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorQuantum <quantum2048@gmail.com>2021-12-01 02:31:45 -0500
committerQuantum <quantum2048@gmail.com>2021-12-01 02:39:14 -0500
commit812ab2e716dc7c1ac906a206709ce009ae30c45c (patch)
treef9189ab4f51b6936e9f28a1f819c9b392d5bdd4a /backend
parent611b9ca84331f3278cfc31e188a86ed117aadb82 (diff)
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.
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c
index c2bac46a..76c25fe5 100644
--- a/backend/wayland/seat.c
+++ b/backend/wayland/seat.c
@@ -468,7 +468,7 @@ struct wlr_wl_input_device *create_wl_input_device(
unsigned int vendor = 0, product = 0;
- const char *type_name;
+ const char *type_name = "unknown";
switch (type) {
case WLR_INPUT_DEVICE_KEYBOARD: