mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 13:18:22 +00:00
open: fix use of possibly null variable
This commit is contained in:
@@ -62,7 +62,9 @@ syscallret_t syscall_openat(context_t *context, int dirfd, char *path, int flags
|
||||
ret.errno = vfs_create(dirnode, pathbuf, &attr, V_TYPE_REGULAR, &vnode);
|
||||
if (ret.errno == EEXIST && (flags & O_EXCL) == 0)
|
||||
goto retry_open;
|
||||
VOP_UNLOCK(vnode);
|
||||
else if (ret.errno == 0) {
|
||||
VOP_UNLOCK(vnode);
|
||||
}
|
||||
}
|
||||
|
||||
if (ret.errno)
|
||||
|
||||
Reference in New Issue
Block a user