Skip to content

Commit 5d7b216

Browse files
committed
Rollup merge of #22568 - semarie:openbsd-rfc592, r=huonw
The commit 1860ee5 has break the openbsd build. Repair it.
2 parents ba568a0 + 082bf7f commit 5d7b216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys/unix/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ pub fn current_exe() -> IoResult<Path> {
220220
if v.is_null() {
221221
Err(IoError::last_error())
222222
} else {
223-
Ok(Path::new(CStr::from_ptr(&v).to_bytes().to_vec()))
223+
Ok(Path::new(CStr::from_ptr(v).to_bytes().to_vec()))
224224
}
225225
}
226226
}

0 commit comments

Comments
 (0)