From 6e0ef08f1fa9478f286b160292b6a23d93c08631 Mon Sep 17 00:00:00 2001 From: Tenari Date: Tue, 16 Jun 2026 07:23:44 -0500 Subject: [PATCH] tweak --- string_chunk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/string_chunk.c b/string_chunk.c index 5dcfe04..f3c3caf 100644 --- a/string_chunk.c +++ b/string_chunk.c @@ -48,9 +48,8 @@ fn String stringChunkToStringWithPadding(Arena* a, StringChunkList list, u32 ext String result = { .length = list.total_size, .capacity = cap, - .bytes = arenaAllocArray(a, u8, cap), + .bytes = arenaAllocZero(a, cap), }; - MemoryZero(result.bytes, result.capacity); // copy the string bytes out of the StringChunkList into the correctly-sized String StringChunk* chunk = list.first; for (u32 i = 0; i < list.total_size; i++) {