mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 21:28:59 +00:00
LibWebView: Explicitly inititalize the ProcessHandle PID
Avoids UB if the PID is read from without otherwise being initialized.
This commit is contained in:
parent
f16f89eb32
commit
c7ef8530bf
Notes:
sideshowbarker
2024-07-17 09:47:09 +09:00
Author: https://github.com/trflynn89
Commit: c7ef8530bf
Pull-request: https://github.com/SerenityOS/serenity/pull/24074
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ namespace WebView {
|
|||
|
||||
struct ProcessHandle {
|
||||
// FIXME: Use mach_port_t on macOS/Hurd and HANDLE on Windows.
|
||||
pid_t pid;
|
||||
pid_t pid { -1 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue