unbreak openbsd build after 1860ee52
The commit 1860ee52
has break the openbsd build.
Repair it.
This commit is contained in:
parent
522d09dfec
commit
082bf7fd0c
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ pub fn current_exe() -> IoResult<Path> {
|
||||||
if v.is_null() {
|
if v.is_null() {
|
||||||
Err(IoError::last_error())
|
Err(IoError::last_error())
|
||||||
} else {
|
} else {
|
||||||
Ok(Path::new(CStr::from_ptr(&v).to_bytes().to_vec()))
|
Ok(Path::new(CStr::from_ptr(v).to_bytes().to_vec()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue