Skip to content

Commit

Permalink
fix regression on posix from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Oct 15, 2017
1 parent 8ab5313 commit 3b0fe53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/os/index.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 3b0fe53

Please sign in to comment.