Skip to content

Commit

Permalink
chore: fix nightly build
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi committed Dec 3, 2023
1 parent f1b3ff9 commit 514b220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.zig
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ pub const StructEnv = struct {
fn getEnv(self: Self, comptime key: []const u8) ?[]const u8 {
const new_key = if (self.prefix) |prefix| blk: {
var new_key = self.allocator.alloc(u8, key.len + prefix.len) catch return "";
std.mem.copy(u8, new_key[0..prefix.len], prefix);
std.mem.copy(u8, new_key[prefix.len..], key);
@memcpy(new_key[0..prefix.len], prefix);
@memcpy(new_key[prefix.len .. prefix.len + key.len], key);

break :blk new_key;
} else blk: {
Expand Down

0 comments on commit 514b220

Please sign in to comment.