LibWebView: Explicitly inititalize the ProcessHandle PID

Avoids UB if the PID is read from without otherwise being initialized.
This commit is contained in:
Timothy Flynn 2024-04-22 14:31:28 -04:00 committed by Andrew Kaster
parent f16f89eb32
commit c7ef8530bf
Notes: sideshowbarker 2024-07-17 09:47:09 +09:00

View file

@ -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 };
};
}