diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2023-07-26 19:51:55 +1200 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2023-07-26 19:51:55 +1200 |
commit | 93e0e0a3dfaeb101b3e2eebdbdd663531fef4069 (patch) | |
tree | e66d6d27918690f257f4c768b174c507ce2add48 | |
parent | 6a4fd86a07ebe97c8067e0e732efc2f708a2c6a8 (diff) |
Ensured stderr suppression stays in C without affecting Ada
-rw-r--r-- | src/c_portadao.c | 6 |
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() { |