]> git.lizzy.rs Git - rust.git/commitdiff
unbreak openbsd build after 1860ee52
authorSébastien Marie <semarie@users.noreply.github.com>
Fri, 20 Feb 2015 10:00:24 +0000 (11:00 +0100)
committerSébastien Marie <semarie@users.noreply.github.com>
Fri, 20 Feb 2015 10:03:53 +0000 (11:03 +0100)
The commit 1860ee52 has break the openbsd build.
Repair it.

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()))
         }
     }
 }