about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-22 02:04:49 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-22 02:04:49 +0530
commit5d7b216f40d13750a31a22ecc20498494f76cbc6 (patch)
tree1c68378f92877c48b757fd5e225a04bb741eaf6b
parentba568a09658d86a45fda2194c020cd6008676186 (diff)
parent082bf7fd0c3bcc3e71399d2826233bbadd7420a9 (diff)
downloadrust-5d7b216f40d13750a31a22ecc20498494f76cbc6.tar.gz
rust-5d7b216f40d13750a31a22ecc20498494f76cbc6.zip
Rollup merge of #22568 - semarie:openbsd-rfc592, r=huonw
 The commit 1860ee52 has break the openbsd build.
Repair it.
-rw-r--r--src/libstd/sys/unix/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs
index 1f82d9a3d79..d51f907307e 100644
--- a/src/libstd/sys/unix/os.rs
+++ b/src/libstd/sys/unix/os.rs
@@ -220,7 +220,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()))
         }
     }
 }