Skip to content

Commit 02e9400

Browse files
committed
core: Fix os::self_exe_path on FreeBSD
1 parent 1077677 commit 02e9400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ fn self_exe_path() -> option<path> {
296296
KERN_PROC_PATHNAME as c_int, -1 as c_int];
297297
sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
298298
buf as *mutable c_void, ptr::mut_addr_of(sz),
299-
ptr::null(), 0u as size_t) != (0 as c_int)
299+
ptr::null(), 0u as size_t) == (0 as c_int)
300300
}
301301
}
302302

0 commit comments

Comments
 (0)