mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
handle both positive and negative errno's
This commit is contained in:
parent
6db307360b
commit
7f8ccf9e7c
1 changed files with 3 additions and 0 deletions
|
|
@ -47,6 +47,9 @@ const char* pa_cstrerror(int errnum) {
|
|||
char *translated, *t;
|
||||
char errbuf[128];
|
||||
|
||||
if (errnum < 0)
|
||||
errnum = -errnum;
|
||||
|
||||
if ((t = PA_STATIC_TLS_GET(cstrerror)))
|
||||
pa_xfree(t);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue