about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-03-13 13:51:03 -0700
committerBrian Anderson <banderson@mozilla.com>2012-03-13 13:51:03 -0700
commit02e9400a82048b75c690308e2b9ca4a5cc1b155c (patch)
treee2fcd43e236a90a0600fa12bf7db8218748bcd9c
parent107767731a887cac817a4124d9fc52e62e54bd9c (diff)
downloadrust-02e9400a82048b75c690308e2b9ca4a5cc1b155c.tar.gz
rust-02e9400a82048b75c690308e2b9ca4a5cc1b155c.zip
core: Fix os::self_exe_path on FreeBSD
-rw-r--r--src/libcore/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/os.rs b/src/libcore/os.rs
index 5698fe7bc98..e13ccc709ff 100644
--- a/src/libcore/os.rs
+++ b/src/libcore/os.rs
@@ -296,7 +296,7 @@ fn self_exe_path() -> option<path> {
                        KERN_PROC_PATHNAME as c_int, -1 as c_int];
             sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
                    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)
         }
     }