mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +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);
|
ret.errno = vfs_create(dirnode, pathbuf, &attr, V_TYPE_REGULAR, &vnode);
|
||||||
if (ret.errno == EEXIST && (flags & O_EXCL) == 0)
|
if (ret.errno == EEXIST && (flags & O_EXCL) == 0)
|
||||||
goto retry_open;
|
goto retry_open;
|
||||||
VOP_UNLOCK(vnode);
|
else if (ret.errno == 0) {
|
||||||
|
VOP_UNLOCK(vnode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret.errno)
|
if (ret.errno)
|
||||||
|
|||||||
Reference in New Issue
Block a user