mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
os/homedir: remove now unnecessary fba.reset()
This commit is contained in:
@ -52,7 +52,6 @@ fn homeUnix(buf: []u8) !?[]u8 {
|
|||||||
var fba = std.heap.FixedBufferAllocator.init(&tempBuf);
|
var fba = std.heap.FixedBufferAllocator.init(&tempBuf);
|
||||||
|
|
||||||
// We try passwd. This doesn't work on multi-user mac but we try it anyways.
|
// 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());
|
const pw = try passwd.get(fba.allocator());
|
||||||
if (pw.home) |result| {
|
if (pw.home) |result| {
|
||||||
if (buf.len < result.len) return Error.BufferTooSmall;
|
if (buf.len < result.len) return Error.BufferTooSmall;
|
||||||
|
Reference in New Issue
Block a user