diff --git a/kernel/process.cpp b/kernel/process.cpp index 68e114b1..a9b7859d 100644 --- a/kernel/process.cpp +++ b/kernel/process.cpp @@ -102,6 +102,7 @@ Process::Process() ptrlock = KTHREAD_MUTEX_INITIALIZER; idlock = KTHREAD_MUTEX_INITIALIZER; user_timers_lock = KTHREAD_MUTEX_INITIALIZER; + memset(&user_timers, 0, sizeof(user_timers)); segments = NULL; segments_used = 0; segments_length = 0; diff --git a/kernel/user-timer.cpp b/kernel/user-timer.cpp index 17f4a348..cc2d0703 100644 --- a/kernel/user-timer.cpp +++ b/kernel/user-timer.cpp @@ -42,8 +42,6 @@ #include #include -// TODO: Memset all user timers in process constructor. - namespace Sortix { // TODO: We also need to fetch the pthread attr if there is one.