aboutsummaryrefslogtreecommitdiff
path: root/std/os
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-10-14 15:39:31 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-10-14 15:39:31 -0400
commita68dc65327469b4b2cc8a034d5e28dac86fe2802 (patch)
tree3970466b24b45252b8f7cd027029887250c7b464 /std/os
parent0bc80411f6a87a76edd0e3f04f697a0eab8ef9c0 (diff)
downloadzig-a68dc65327469b4b2cc8a034d5e28dac86fe2802.tar.gz
zig-a68dc65327469b4b2cc8a034d5e28dac86fe2802.zip
fix os.makeDir for posix
Diffstat (limited to 'std/os')
-rw-r--r--std/os/index.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/os/index.zig b/std/os/index.zig
index c9103ff93b..6f5631c120 100644
--- a/std/os/index.zig
+++ b/std/os/index.zig
@@ -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));