mirror of
https://github.com/ziglang/zig.git
synced 2025-02-02 20:21:35 +00:00
fix regression on posix from previous commit
This commit is contained in:
parent
8ab5313043
commit
3b0fe534bc
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user