diff --git a/src/pulse/error.c b/src/pulse/error.c index 3f2e70e0b..9551d98ea 100644 --- a/src/pulse/error.c +++ b/src/pulse/error.c @@ -68,7 +68,10 @@ const char*pa_strerror(int error) { pa_init_i18n(); - if (error < 0 || error >= PA_ERR_MAX) + if (error < 0) + error = -error; + + if (error >= PA_ERR_MAX) return NULL; return _(errortab[error]);