Skip to content

Commit cdf1e36

Browse files
committedJun 14, 2018
fix build on windows, broken by previous commit
·
0.15.20.3.0
1 parent 6943cef commit cdf1e36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎std/os/index.zig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ pub fn selfExeDirPath(allocator: *mem.Allocator) ![]u8 {
19711971
Os.windows, Os.macosx, Os.ios => {
19721972
const self_exe_path = try selfExePath(allocator);
19731973
errdefer allocator.free(self_exe_path);
1974-
const dirname = os.path.dirname(self_exe_path);
1974+
const dirname = os.path.dirname(self_exe_path) orelse ".";
19751975
return allocator.shrink(u8, self_exe_path, dirname.len);
19761976
},
19771977
else => @compileError("unimplemented: std.os.selfExeDirPath for " ++ @tagName(builtin.os)),

0 commit comments

Comments
 (0)
Please sign in to comment.