From 3a200aa279393f603a7d335975a50f4719110f2a Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sat, 4 Mar 2023 17:01:00 +0300 Subject: [PATCH] tinywl: init server to zeros This fixes e.g. accessing grabbed_view on a toplevel unmap if no toplevel was grabbed before. --- tinywl/tinywl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index ea810571..d490167d 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -835,7 +835,7 @@ int main(int argc, char *argv[]) { return 0; } - struct tinywl_server server; + struct tinywl_server server = {0}; /* The Wayland display is managed by libwayland. It handles accepting * clients from the Unix socket, manging Wayland globals, and so on. */ server.wl_display = wl_display_create();