From 3b0fe534bc36e992795a8176511b4b093270eff4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 15 Oct 2017 01:24:39 -0400 Subject: [PATCH] fix regression on posix from previous commit --- std/os/index.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/os/index.zig b/std/os/index.zig index 0feb829da..1eb422b57 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); } }