projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
341f44f
)
handle negative error codes
author
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Mar 2009 04:29:09 +0000
(
05:29
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 4 Mar 2009 04:32:26 +0000
(
05:32
+0100)
src/pulse/error.c
patch
|
blob
|
history
diff --git
a/src/pulse/error.c
b/src/pulse/error.c
index
3f2e70e
..
9551d98
100644
(file)
--- 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]);