mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +00:00
Kernel: Use uniform initialization instead of memset for a few stack buffer.
Raw memset is relatively easy to mess up, avoid it when there are better alternatives provided by the compiler in modern C++.
This commit is contained in:
committed by
Andreas Kling
parent
7c950c2d01
commit
cbd8f78cce
@@ -390,8 +390,7 @@ void kgettimeofday(timeval& tv)
|
||||
|
||||
siginfo_t Process::wait_info()
|
||||
{
|
||||
siginfo_t siginfo;
|
||||
memset(&siginfo, 0, sizeof(siginfo));
|
||||
siginfo_t siginfo {};
|
||||
siginfo.si_signo = SIGCHLD;
|
||||
siginfo.si_pid = pid().value();
|
||||
siginfo.si_uid = uid();
|
||||
|
||||
Reference in New Issue
Block a user