mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix regression from 2f7f7d815d0c9c4e620c7a529837b5
This commit is contained in:
parent
0a918aaa14
commit
6b31b178a6
@ -638,9 +638,7 @@ pub async fn readFile(loop: *Loop, file_path: []const u8, max_size: usize) ![]u8
|
||||
var close_op = try CloseOperation.start(loop);
|
||||
defer close_op.finish();
|
||||
|
||||
const file_path_c = try os.toPosixPath(file_path);
|
||||
|
||||
const fd = try await (async openRead(loop, file_path_c[0..file_path.len]) catch unreachable);
|
||||
const fd = try await (async openRead(loop, file_path) catch unreachable);
|
||||
close_op.setHandle(fd);
|
||||
|
||||
var list = std.ArrayList(u8).init(loop.allocator);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user