core: Fix os::self_exe_path on FreeBSD
This commit is contained in:
parent
107767731a
commit
02e9400a82
@ -296,7 +296,7 @@ fn load_self() -> option<path> unsafe {
|
|||||||
KERN_PROC_PATHNAME as c_int, -1 as c_int];
|
KERN_PROC_PATHNAME as c_int, -1 as c_int];
|
||||||
sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
|
sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
|
||||||
buf as *mutable c_void, ptr::mut_addr_of(sz),
|
buf as *mutable c_void, ptr::mut_addr_of(sz),
|
||||||
ptr::null(), 0u as size_t) != (0 as c_int)
|
ptr::null(), 0u as size_t) == (0 as c_int)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user