diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-10-15 01:24:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-10-15 01:24:58 -0400 |
| commit | 3b0fe534bc36e992795a8176511b4b093270eff4 (patch) | |
| tree | d6c1c2b44f95a00f43dc841d7a64c2b53a6e52a5 /std | |
| parent | 8ab5313043dad325488d4491a30642696dc7bbcf (diff) | |
| download | zig-3b0fe534bc36e992795a8176511b4b093270eff4.tar.gz zig-3b0fe534bc36e992795a8176511b4b093270eff4.zip | |
fix regression on posix from previous commit
Diffstat (limited to 'std')
| -rw-r--r-- | std/os/index.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os/index.zig b/std/os/index.zig index 0feb829da5..1eb422b57b 100644 --- a/std/os/index.zig +++ b/std/os/index.zig @@ -504,7 +504,7 @@ pub fn getEnvVarOwned(allocator: &mem.Allocator, key: []const u8) -> %[]u8 { } } else { const result = getEnvPosix(key) ?? return error.EnvironmentVariableNotFound; - return mem.dupe(u8, allocator, result); + return mem.dupe(allocator, u8, result); } } |
