From acd3698f3738d5efafaff19f1b94f6a0790bd593 Mon Sep 17 00:00:00 2001 From: John Schmidt Date: Sun, 29 Oct 2023 00:28:47 +0200 Subject: [PATCH] Zero unused bytes in chain name on add --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index c2b7dc5..58d6301 100644 --- a/src/main.zig +++ b/src/main.zig @@ -929,7 +929,7 @@ pub fn main() !void { var chain = Chain{ .id = chain_db.meta.id_counter, - .name = undefined, + .name = std.mem.zeroes([128]u8), .name_len = @as(u16, @intCast(name.len)), .kind = kind, .color = color.colors[chain_db.meta.len % color.colors.len],