aboutsummaryrefslogtreecommitdiff
path: root/tinywl
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-03-04 17:01:00 +0300
committerKirill Primak <vyivel@eclair.cafe>2023-03-04 17:01:11 +0300
commit3a200aa279393f603a7d335975a50f4719110f2a (patch)
treec152ab02a734ea252c6692b60e89fade9b712855 /tinywl
parent5ae17de23f5fd9bb252a698f3771c840280e2c05 (diff)
tinywl: init server to zeros
This fixes e.g. accessing grabbed_view on a toplevel unmap if no toplevel was grabbed before.
Diffstat (limited to 'tinywl')
-rw-r--r--tinywl/tinywl.c2
1 files changed, 1 insertions, 1 deletions
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();