Skip to content

Commit dc30cc3

Browse files
committed
core: Fix BSD breakage, I hope
1 parent 6351515 commit dc30cc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ pub fn self_exe_path() -> Option<Path> {
374374
let mib = ~[CTL_KERN as c_int,
375375
KERN_PROC as c_int,
376376
KERN_PROC_PATHNAME as c_int, -1 as c_int];
377+
let mut sz = sz;
377378
sysctl(vec::raw::to_ptr(mib), vec::len(mib) as c_uint,
378379
buf as *mut c_void, &mut sz, ptr::null(),
379380
0u as size_t) == (0 as c_int)

0 commit comments

Comments
 (0)