diff options
author | Himbeer <himbeer@disroot.org> | 2024-07-11 22:51:07 +0200 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2024-07-11 22:51:07 +0200 |
commit | db88bc3b0a31c4ca447940e2b97a7156ed70db21 (patch) | |
tree | 58bb7713d0d7d63b5aec68d8e165542063db5137 | |
parent | 018accd1bdc91da665934d7289390ec6f2c3c71c (diff) |
vfs: Check if path search is finished by using path parameter instead of incorrect it.last() value
-rw-r--r-- | src/lib/vfs.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/vfs.zig b/src/lib/vfs.zig index a687c43..c70a375 100644 --- a/src/lib/vfs.zig +++ b/src/lib/vfs.zig @@ -238,7 +238,7 @@ pub fn find(path: []const u8) ?*Inode { else => null, // Not a directory (or directory hook). } orelse return null; - if (mem.eql(u8, component.path, (it.last() orelse return null).path)) { + if (mem.eql(u8, component.path, path)) { return inode; } resource = inode.resource; |