fix regression on posix from previous commit

This commit is contained in:
Andrew Kelley 2017-10-15 01:24:39 -04:00
parent 8ab5313043
commit 3b0fe534bc

View File

@ -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);
}
}