diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pulse/error.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pulse/error.c b/src/pulse/error.c index 3f2e70e0..9551d98e 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]); |