From eaad1b353611d589653f3b7ea2d671f3a59a42b0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 21 Aug 2023 02:43:34 -0700 Subject: Clear errno prior to the call that may set it --- alc/backends/pipewire.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'alc') diff --git a/alc/backends/pipewire.cpp b/alc/backends/pipewire.cpp index dbca20d9..ede4399b 100644 --- a/alc/backends/pipewire.cpp +++ b/alc/backends/pipewire.cpp @@ -965,6 +965,7 @@ void NodeProxy::infoCallback(const pw_node_info *info) noexcept #ifdef PW_KEY_OBJECT_SERIAL if(const char *serial_str{spa_dict_lookup(info->props, PW_KEY_OBJECT_SERIAL)}) { + errno = 0; char *serial_end{}; serial_id = std::strtoull(serial_str, &serial_end, 0); if(*serial_end != '\0' || errno == ERANGE) -- cgit v1.2.3