]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys/unix/os.rs
unbreak openbsd build after 1860ee52
[rust.git] / src / libstd / sys / unix / os.rs
index 3d1ef3a2c37f7e8267dfb65d84f79ba4e0e55bc1..3fa7bc9915f423310fa8394cdf419a1e23134640 100644 (file)
@@ -211,7 +211,7 @@ pub fn current_exe() -> IoResult<Path> {
         if v.is_null() {
             Err(IoError::last_error())
         } else {
-            Ok(Path::new(CStr::from_ptr(&v).to_bytes().to_vec()))
+            Ok(Path::new(CStr::from_ptr(v).to_bytes().to_vec()))
         }
     }
 }