aboutsummaryrefslogtreecommitdiff
path: root/lib/std/process.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-06-02 01:15:36 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:59 -0700
commit04e66e6b4deb67aef9a4064decd82a678cb7ec82 (patch)
tree85c7c8127147467d13707adbc255fc1239b1b7f6 /lib/std/process.zig
parentfdfe730487972f089786938706f311b1f8631333 (diff)
downloadzig-04e66e6b4deb67aef9a4064decd82a678cb7ec82.tar.gz
zig-04e66e6b4deb67aef9a4064decd82a678cb7ec82.zip
InternPool: add optional coercion
Diffstat (limited to 'lib/std/process.zig')
-rw-r--r--lib/std/process.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/process.zig b/lib/std/process.zig
index f5972eda1e..6ad0df868e 100644
--- a/lib/std/process.zig
+++ b/lib/std/process.zig
@@ -1143,7 +1143,7 @@ pub fn execve(
} else if (builtin.output_mode == .Exe) {
// Then we have Zig start code and this works.
// TODO type-safety for null-termination of `os.environ`.
- break :m @ptrCast([*:null]?[*:0]const u8, os.environ.ptr);
+ break :m @ptrCast([*:null]const ?[*:0]const u8, os.environ.ptr);
} else {
// TODO come up with a solution for this.
@compileError("missing std lib enhancement: std.process.execv implementation has no way to collect the environment variables to forward to the child process");