Skip to content

Commit

Permalink
fix build on windows, broken by previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Jun 14, 2018
1 parent 6943cef commit cdf1e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/os/index.zig
Expand Up @@ -1971,7 +1971,7 @@ pub fn selfExeDirPath(allocator: *mem.Allocator) ![]u8 {
Os.windows, Os.macosx, Os.ios => {
const self_exe_path = try selfExePath(allocator);
errdefer allocator.free(self_exe_path);
const dirname = os.path.dirname(self_exe_path);
const dirname = os.path.dirname(self_exe_path) orelse ".";
return allocator.shrink(u8, self_exe_path, dirname.len);
},
else => @compileError("unimplemented: std.os.selfExeDirPath for " ++ @tagName(builtin.os)),
Expand Down

0 comments on commit cdf1e36

Please sign in to comment.