Skip to content

Commit

Permalink
Tweak solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
newpavlov committed Oct 28, 2024
1 parent 2d98663 commit b6374ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/solaris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn fill_inner(dest: &mut [MaybeUninit<u8>]) -> Result<(), Error> {
Ok(ret) if ret == chunk.len() => {}
// The syscall failed.
Ok(0) => return Err(util_libc::last_os_error()),
// The system should never return 0 for non-empty buffers
// All other cases should be impossible.
_ => return Err(Error::UNEXPECTED),
}
}
Expand Down

0 comments on commit b6374ba

Please sign in to comment.