authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2026-01-04 12:52:44-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-01-05 11:28:57+01:00
log31a6e83a7cf178156d9408a9e7061853ea2410ec
tree9ef1b3716fa2fd9a8c43e2caa8cd77ea1666c64f
parent29b9e24df7a2b07e36a4851102ba114f35a05290

openbsd: fix Io.Threaded bitrot


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Io/Threaded.zig+3-3
......@@ -73,7 +73,7 @@ pub const Argv0 = switch (native_os) {
7373 pub const empty: Argv0 = .{ .value = null };
7474
7575 pub fn init(args: process.Args) Argv0 {
76 return .{ .value = args.value[0] };
76 return .{ .value = args.vector[0] };
7777 }
7878 },
7979 else => struct {
......@@ -1181,7 +1181,7 @@ pub const InitOptions = struct {
11811181 concurrent_limit: Io.Limit = .unlimited,
11821182 /// Affects the following operations:
11831183 /// * `processExecutablePath` on OpenBSD and Haiku.
1184 argv0: Argv0 = .{},
1184 argv0: Argv0 = .empty,
11851185 /// Affects the following operations:
11861186 /// * `fileIsTty`
11871187 /// * `processExecutablePath` on OpenBSD and Haiku (observes "PATH").
......@@ -1251,7 +1251,7 @@ pub const init_single_threaded: Threaded = .{
12511251 .old_sig_io = undefined,
12521252 .old_sig_pipe = undefined,
12531253 .have_signal_handler = false,
1254 .argv0 = .{},
1254 .argv0 = .empty,
12551255 .environ = .{},
12561256 .worker_threads = .init(null),
12571257};