blob: 67ffd9e4a57658d02b29417be554657b70a90605 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- base/process/process_handle_freebsd.cc.orig 2017-01-26 00:49:07 UTC
+++ base/process/process_handle_freebsd.cc
@@ -16,7 +16,7 @@ namespace base {
ProcessId GetParentProcessId(ProcessHandle process) {
struct kinfo_proc info;
- size_t length;
+ size_t length = sizeof(struct kinfo_proc);
int mib[] = { CTL_KERN, KERN_PROC, KERN_PROC_PID, process };
if (sysctl(mib, arraysize(mib), &info, &length, NULL, 0) < 0)
|