aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/fs.c')
-rw-r--r--kernel/features/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/fs.c b/kernel/features/fs.c
index 3c1b849..c328f04 100644
--- a/kernel/features/fs.c
+++ b/kernel/features/fs.c
@@ -116,7 +116,7 @@ void *read_file(char *path)
}
u32 inode = find_inode(path, current_inode);
- if (inode == 0)
+ if ((signed)inode <= 0)
return 0;
return read_inode(get_inode(inode));