pulsecore: Set errno before calling read

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/759>
This commit is contained in:
Alistair Leslie-Hughes 2022-12-14 13:27:12 +11:00
parent 89ce6321bd
commit 96bd4e57b5

View file

@ -407,6 +407,7 @@ finish:
* by the caller. */
ssize_t pa_read(int fd, void *buf, size_t count, int *type) {
errno = 0;
#ifdef OS_IS_WIN32
if (!type || *type == 0) {