diff options
Diffstat (limited to 'Kernel/Syscalls/clock.cpp')
-rw-r--r-- | Kernel/Syscalls/clock.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Kernel/Syscalls/clock.cpp b/Kernel/Syscalls/clock.cpp index dc9a6e4c6e..3bac104a2c 100644 --- a/Kernel/Syscalls/clock.cpp +++ b/Kernel/Syscalls/clock.cpp @@ -29,14 +29,13 @@ namespace Kernel { -int Process::sys$clock_gettime(clockid_t clock_id, timespec* user_ts) +int Process::sys$clock_gettime(clockid_t clock_id, Userspace<timespec*> user_ts) { REQUIRE_PROMISE(stdio); if (!validate_write_typed(user_ts)) return -EFAULT; - timespec ts; - memset(&ts, 0, sizeof(ts)); + timespec ts = {}; switch (clock_id) { case CLOCK_MONOTONIC: |