blob: 4115ed2efc480d6882cb26728675ff726db17606 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- base/process/process_handle_freebsd.cc.orig 2017-04-19 19:06:28 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)
|