From 96bd4e57b5b02dc04b61528033f283f5fea7e723 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Wed, 14 Dec 2022 13:27:12 +1100 Subject: pulsecore: Set errno before calling read Part-of: --- src/pulsecore/core-util.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.1