| ... | ... | @@ -1971,7 +1971,7 @@ pub fn selfExeDirPath(allocator: *mem.Allocator) ![]u8 { |
| 1971 | 1971 | Os.windows, Os.macosx, Os.ios => { |
| 1972 | 1972 | const self_exe_path = try selfExePath(allocator); |
| 1973 | 1973 | 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 "."; |
| 1975 | 1975 | return allocator.shrink(u8, self_exe_path, dirname.len); |
| 1976 | 1976 | }, |
| 1977 | 1977 | else => @compileError("unimplemented: std.os.selfExeDirPath for " ++ @tagName(builtin.os)), |