mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
utimensat syscall: fix null dereference
This commit is contained in:
@@ -12,9 +12,9 @@ syscallret_t syscall_utimensat(context_t *, int fd, char *upath, timespec_t uts[
|
|||||||
|
|
||||||
timespec_t ts[2];
|
timespec_t ts[2];
|
||||||
if (uts == NULL)
|
if (uts == NULL)
|
||||||
memcpy(ts, uts, sizeof(timespec_t) * 2);
|
|
||||||
else
|
|
||||||
ts[0] = ts[1] = timekeeper_time();
|
ts[0] = ts[1] = timekeeper_time();
|
||||||
|
else
|
||||||
|
memcpy(ts, uts, sizeof(timespec_t) * 2);
|
||||||
|
|
||||||
vnode_t *node = NULL;
|
vnode_t *node = NULL;
|
||||||
vnode_t *dirnode = NULL;
|
vnode_t *dirnode = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user