mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-05-21 10:38:24 +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:
committed by
Andrew Kaster
parent
f16f89eb32
commit
c7ef8530bf
@@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user