From decb6bdbb0e9b951e44a5d51a7409af34adb715d Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:14:06 +0100 Subject: [PATCH] fix: std.os.getenv -> std.posix.getenv --- known-folders.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/known-folders.zig b/known-folders.zig index aefe7dd..d85215f 100644 --- a/known-folders.zig +++ b/known-folders.zig @@ -121,7 +121,7 @@ pub fn getPath(allocator: std.mem.Allocator, folder: KnownFolder) Error!?[]const return try allocator.dupe(u8, abs); }, .suffix => |s| { - const home_dir = if (std.os.getenv("HOME")) |home| + const home_dir = if (std.posix.getenv("HOME")) |home| home else return null;