From a68dc65327469b4b2cc8a034d5e28dac86fe2802 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 14 Oct 2017 15:39:31 -0400 Subject: fix os.makeDir for posix --- std/os/index.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/os') 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)); -- cgit v1.2.3