mirror of
https://github.com/ziglang/zig.git
synced 2026-02-19 07:48:31 +00:00
std.fs: fix incorrect passing of pointer to temporary
This commit is contained in:
parent
bb84c87a47
commit
61c5d8f8f1
@ -887,10 +887,8 @@ pub const Dir = struct {
|
||||
}
|
||||
|
||||
pub fn deinit(self: *Walker) void {
|
||||
while (self.stack.popOrNull()) |*item| {
|
||||
if (self.stack.items.len != 0) {
|
||||
item.iter.dir.close();
|
||||
}
|
||||
for (self.stack.items) |*item| {
|
||||
item.iter.dir.close();
|
||||
}
|
||||
self.stack.deinit();
|
||||
self.name_buffer.deinit();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user