Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix read return value check in buffer_release_thread
Previously, we were reading 0 bytes and were passing uninitiaized value to `switch`. Likely, not much changed in practice (all codepaths were just terminating the thread, regardless of the success of the `read`), but now we don't trigger undefined behavior.
- Loading branch information