mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +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: https://github.com/SerenityOS/serenity/commit/c7ef8530bf Pull-request: https://github.com/SerenityOS/serenity/pull/24074 Reviewed-by: https://github.com/ADKaster ✅
|
@ -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…
Reference in a new issue