From 7121ab6c3f0e868d3383c59a2e4d5a564f96aa9f Mon Sep 17 00:00:00 2001 From: Chris Marchesi Date: Tue, 21 Jul 2026 23:11:21 -0700 Subject: [PATCH] global: state should default to null --- src/global.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.zig b/src/global.zig index f43845078..e69b3042d 100644 --- a/src/global.zig +++ b/src/global.zig @@ -31,7 +31,7 @@ pub const xev = @import("xev").Dynamic; /// Global process state. This is initialized in main() for exe artifacts and /// by ghostty_init() for lib artifacts. Most other methods in this file will /// retrieve items stored in this state. -var state: ?GlobalState = undefined; +var state: ?GlobalState = null; pub const InitOpts = union(enum) { main: std.process.Init.Minimal,