summaryrefslogtreecommitdiff
path: root/decoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.c')
-rw-r--r--decoder.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/decoder.c b/decoder.c
index f15a799..83b758f 100644
--- a/decoder.c
+++ b/decoder.c
@@ -767,13 +767,9 @@ SRD_API int srd_decoder_load(const char *module_name)
return SRD_OK;
except_out:
- if (fail_txt) {
- srd_exception_catch("Failed to load decoder %s: %s",
- module_name, fail_txt);
- fail_txt = NULL;
- } else {
- srd_exception_catch("Failed to load decoder %s", module_name);
- }
+ srd_exception_catch("Failed to load decoder %s: %s",
+ module_name, fail_txt);
+ fail_txt = NULL;
err_out:
if (fail_txt)
srd_err("Failed to load decoder %s: %s", module_name, fail_txt);