aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-08-21 02:43:34 -0700
committerChris Robinson <[email protected]>2023-08-21 02:43:34 -0700
commiteaad1b353611d589653f3b7ea2d671f3a59a42b0 (patch)
treebca47c403ed1daafa8795a7b3af7b9dd0d250e12 /alc
parentde06eb7a036f2890899f4289adc4f84af3475a37 (diff)
Clear errno prior to the call that may set it
Diffstat (limited to 'alc')
-rw-r--r--alc/backends/pipewire.cpp1
1 files changed, 1 insertions, 0 deletions
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)