Skip to content

Commit 33ebaf1

Browse files
committed
Use environ_map.get
1 parent 7dcd927 commit 33ebaf1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,8 +1641,8 @@ fn cmdConfig(args: []const []const u8, allocator: std.mem.Allocator, io: std.Io,
16411641
std.debug.print("\nKey resolution priority:\n", .{});
16421642
std.debug.print(" 1. --key flag (if provided)\n", .{});
16431643
std.debug.print(" 2. {s} environment variable", .{keyloader.env_var_name});
1644-
if (std.c.getenv(keyloader.env_var_name)) |env_val| {
1645-
std.debug.print(" (currently: {s})", .{std.mem.span(env_val)});
1644+
if (environ_map.get(keyloader.env_var_name)) |env_val| {
1645+
std.debug.print(" (currently: {s})", .{env_val});
16461646
} else {
16471647
std.debug.print(" (not set)", .{});
16481648
}

0 commit comments

Comments
 (0)