authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2025-12-27 16:48:07-05:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2025-12-28 20:20:43+01:00
logb335e52ed6c09f6fd1c8c3a666fd0fa50659b081
treea9b40f2b40bb0dd5d8748de60d6e189ca51d9d86
parent0ae629ee226d2a07922772b6eae409926e62d110

openbsd: fixup nullz handling in Io.Threaded


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

lib/std/Io/Threaded.zig+3-3
......@@ -7209,7 +7209,7 @@ fn processExecutablePath(userdata: ?*anyopaque, out_buffer: []u8) std.process.Ex
72097209 .openbsd, .haiku => {
72107210 // The best we can do on these operating systems is check based on
72117211 // the first process argument.
7212 const argv0 = t.argv0.value orelse return error.OperationUnsupported;
7212 const argv0 = std.mem.span(t.argv0.value orelse return error.OperationUnsupported);
72137213 if (std.mem.findScalar(u8, argv0, '/') != null) {
72147214 // argv[0] is a path (relative or absolute): use realpath(3) directly
72157215 const current_thread = Thread.getCurrent(t);
......@@ -12153,7 +12153,7 @@ fn scanEnviron(t: *Threaded) void {
1215312153
1215412154 var end_i: usize = line_i;
1215512155 while (line[end_i] != 0) : (end_i += 1) {}
12156 const value = line[line_i + 1 .. end_i];
12156 const value = line[line_i + 1 .. end_i :0];
1215712157
1215812158 if (std.mem.eql(u8, key, "NO_COLOR")) {
1215912159 t.environ.exist.NO_COLOR = true;
......@@ -12171,7 +12171,7 @@ fn scanEnviron(t: *Threaded) void {
1217112171
1217212172 var end_i: usize = line_i;
1217312173 while (line[end_i] != 0) : (end_i += 1) {}
12174 const value = line[line_i + 1 .. end_i];
12174 const value = line[line_i + 1 .. end_i :0];
1217512175
1217612176 if (std.mem.eql(u8, key, "NO_COLOR")) {
1217712177 t.environ.exist.NO_COLOR = true;