Skip to content

Commit

Permalink
fix os.makeDir for posix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Oct 14, 2017
1 parent 0bc8041 commit a68dc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/os/index.zig
Expand Up @@ -783,7 +783,7 @@ pub fn makeDirWindows(allocator: &Allocator, dir_path: []const u8) -> %void {
}

pub fn makeDirPosix(allocator: &Allocator, dir_path: []const u8) -> %void {
const path_buf = cstr.addNullByte(allocator, dir_path);
const path_buf = %return cstr.addNullByte(allocator, dir_path);
defer allocator.free(path_buf);

const err = posix.getErrno(posix.mkdir(path_buf.ptr, 0o755));
Expand Down

0 comments on commit a68dc65

Please sign in to comment.