From 31a6e83a7cf178156d9408a9e7061853ea2410ec Mon Sep 17 00:00:00 2001 From: Michael Dusan Date: Sun, 4 Jan 2026 12:52:44 -0500 Subject: [PATCH] openbsd: fix Io.Threaded bitrot --- lib/std/Io/Threaded.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index ce41c8ca752b90a348da14c4d583cfe0659306d1..0e6252e82404fc964c38dcc921387b423b2c246e 100644 --- a/lib/std/Io/Threaded.zig +++ b/lib/std/Io/Threaded.zig @@ -73,7 +73,7 @@ pub const Argv0 = switch (native_os) { pub const empty: Argv0 = .{ .value = null }; pub fn init(args: process.Args) Argv0 { - return .{ .value = args.value[0] }; + return .{ .value = args.vector[0] }; } }, else => struct { @@ -1181,7 +1181,7 @@ pub const InitOptions = struct { concurrent_limit: Io.Limit = .unlimited, /// Affects the following operations: /// * `processExecutablePath` on OpenBSD and Haiku. - argv0: Argv0 = .{}, + argv0: Argv0 = .empty, /// Affects the following operations: /// * `fileIsTty` /// * `processExecutablePath` on OpenBSD and Haiku (observes "PATH"). @@ -1251,7 +1251,7 @@ pub const init_single_threaded: Threaded = .{ .old_sig_io = undefined, .old_sig_pipe = undefined, .have_signal_handler = false, - .argv0 = .{}, + .argv0 = .empty, .environ = .{}, .worker_threads = .init(null), }; -- 2.54.0