diff options
author | Alistair Leslie-Hughes <leslie_alistair@hotmail.com> | 2022-12-14 13:27:12 +1100 |
---|---|---|
committer | Alistair Leslie-Hughes <leslie_alistair@hotmail.com> | 2022-12-14 13:29:20 +1100 |
commit | 96bd4e57b5b02dc04b61528033f283f5fea7e723 (patch) | |
tree | 185f9e3e15b6ffbbc97d42344204a04a8ef42480 | |
parent | 89ce6321bd19452097392ddfb416bc51a280b63e (diff) |
pulsecore: Set errno before calling read
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/759>
-rw-r--r-- | src/pulsecore/core-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index c383a61c0..5d2bae92f 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -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) { |