From 1e939ae316571247aa21dc9814517c0361cf07ae Mon Sep 17 00:00:00 2001 From: IoIxD Date: Sun, 26 Apr 2026 13:10:45 -0700 Subject: [PATCH] wayland: memset device_ctx_wl to accomidate for platforms that don't have a clipboard device --- src/backend/wayland.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/wayland.c b/src/backend/wayland.c index 03e2d14..e3ce9c1 100644 --- a/src/backend/wayland.c +++ b/src/backend/wayland.c @@ -930,6 +930,7 @@ static void wl_seat_capabilities(void* data, struct wl_seat* wl_seat, MwLL self = data; wl_clipboard_device_context_t* device_ctx_zwp = NULL; wl_clipboard_device_context_t* device_ctx_wl = malloc(sizeof(wl_clipboard_device_context_t)); + memset(device_ctx_wl, 0, sizeof(wl_clipboard_device_context_t)); WAYLAND_EVENT_OP_START(self);