authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-09-29 19:10:01-07:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2026-09-29 19:10:34-07:00
logbbb48690de0d320e3a3d6436d28acfb8029f80c5
tree37e17e84d332b968f13eae84ef45c533503a2f9d
parentfd1c54933277d9f2ffe9bab1100228e139de67ae

Io.failing: Fix dirRead implementation not setting `state`

This caused `Dir.Reader.next` to loop infinitely since it only returns `null` when state is `.finished`. Closes #37011

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/Io.zig+1-1
...@@ -3081,8 +3081,8 @@ pub fn unreachableDirClose(userdata: ?*anyopaque, dirs: []const Dir) void {...@@ -3081,8 +3081,8 @@ pub fn unreachableDirClose(userdata: ?*anyopaque, dirs: []const Dir) void {
30813081
3082pub fn noDirRead(userdata: ?*anyopaque, dir_reader: *Dir.Reader, buffer: []Dir.Entry) Dir.Reader.Error!usize {3082pub fn noDirRead(userdata: ?*anyopaque, dir_reader: *Dir.Reader, buffer: []Dir.Entry) Dir.Reader.Error!usize {
3083 _ = userdata;3083 _ = userdata;
3084 _ = dir_reader;
3085 _ = buffer;3084 _ = buffer;
3085 dir_reader.state = .finished;
3086 return 0;3086 return 0;
3087}3087}
30883088