summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c_portadao.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/c_portadao.c b/src/c_portadao.c
index fc2e3b0..d664b69 100644
--- a/src/c_portadao.c
+++ b/src/c_portadao.c
@@ -112,7 +112,11 @@ int apa_init(int stop_msg) {
if (stop_msg) {
suppress_stderr();
}
- return Pa_Initialize();
+ int result = Pa_Initialize();
+ if (suppressed) {
+ restore_stderr();
+ }
+ return result;
}
int apa_term() {