summaryrefslogtreecommitdiff
path: root/xdg.zig
diff options
context:
space:
mode:
Diffstat (limited to 'xdg.zig')
-rw-r--r--xdg.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/xdg.zig b/xdg.zig
index a8f3aad..28d9059 100644
--- a/xdg.zig
+++ b/xdg.zig
@@ -67,13 +67,13 @@ pub fn getAllConfigDirs(allocator: Allocator, app_name: []const u8) ![][]u8 {
67} 67}
68 68
69pub fn openDataHome(allocator: Allocator, app_name: []const u8) !Dir { 69pub fn openDataHome(allocator: Allocator, app_name: []const u8) !Dir {
70 var data_home = try getDataHome(allocator, app_name); 70 const data_home = try getDataHome(allocator, app_name);
71 defer allocator.free(data_home); 71 defer allocator.free(data_home);
72 return try std.fs.cwd().makeOpenPath(data_home, .{}); 72 return try std.fs.cwd().makeOpenPath(data_home, .{});
73} 73}
74 74
75pub fn openBinHome(allocator: Allocator) !Dir { 75pub fn openBinHome(allocator: Allocator) !Dir {
76 var bin_home = try getBinHome(allocator); 76 const bin_home = try getBinHome(allocator);
77 defer allocator.free(bin_home); 77 defer allocator.free(bin_home);
78 return try std.fs.cwd().makeOpenPath(bin_home, .{}); 78 return try std.fs.cwd().makeOpenPath(bin_home, .{});
79} 79}