diff options
author | Chris Robinson <[email protected]> | 2023-08-21 02:43:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-08-21 02:43:34 -0700 |
commit | eaad1b353611d589653f3b7ea2d671f3a59a42b0 (patch) | |
tree | bca47c403ed1daafa8795a7b3af7b9dd0d250e12 /alc/backends/pipewire.cpp | |
parent | de06eb7a036f2890899f4289adc4f84af3475a37 (diff) |
Clear errno prior to the call that may set it
Diffstat (limited to 'alc/backends/pipewire.cpp')
-rw-r--r-- | alc/backends/pipewire.cpp | 1 |
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) |