| author | |
| committer | |
| log | e7d02eae4d99fbae11e91ddd7601e5ac2a392292 |
| tree | fa2027772456ddcc7469409c7a0639569c7716bb |
| parent | b5badd112288b528d75085d82d5f7f1b109e87dc |
| signature |
Co-authored-by: Joachim Schmidt <joachim.schmidt557@outlook.com>1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/fs/test.zig+1-1| ... | ... | @@ -30,7 +30,7 @@ test "Dir.Iterator" { |
| 30 | 30 | while (try iter.next()) |entry| { |
| 31 | 31 | // We cannot just store `entry` as on Windows, we're re-using the name buffer |
| 32 | 32 | // which means we'll actually share the `name` pointer between entries! |
| 33 | const name = try mem.dupe(&arena.allocator, u8, entry.name); | |
| 33 | const name = try arena.allocator.dupe(u8, entry.name); | |
| 34 | 34 | try entries.append(Dir.Entry{ .name = name, .kind = entry.kind }); |
| 35 | 35 | } |
| 36 | 36 |