summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pulsecore/core-util.c1
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) {