From 29a5b52885981a84f1dd67daeb07b191cc41d4c4 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Sun, 31 Mar 2024 08:53:49 -0700 Subject: [PATCH] os/homedir: remove now unnecessary fba.reset() --- src/os/homedir.zig | 1 - 1 file changed, 1 deletion(-) diff --git a/src/os/homedir.zig b/src/os/homedir.zig index 2d690da9f..567a96ccd 100644 --- a/src/os/homedir.zig +++ b/src/os/homedir.zig @@ -52,7 +52,6 @@ fn homeUnix(buf: []u8) !?[]u8 { var fba = std.heap.FixedBufferAllocator.init(&tempBuf); // We try passwd. This doesn't work on multi-user mac but we try it anyways. - fba.reset(); const pw = try passwd.get(fba.allocator()); if (pw.home) |result| { if (buf.len < result.len) return Error.BufferTooSmall;