summaryrefslogtreecommitdiff
path: root/src/lib/err/torerr_sys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/err/torerr_sys.c')
-rw-r--r--src/lib/err/torerr_sys.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/err/torerr_sys.c b/src/lib/err/torerr_sys.c
index 54666f4106..2f9e33e233 100644
--- a/src/lib/err/torerr_sys.c
+++ b/src/lib/err/torerr_sys.c
@@ -18,7 +18,8 @@
static int
torerr_subsys_init(void)
{
- configure_backtrace_handler(get_version());
+ if (configure_backtrace_handler(get_version()) < 0)
+ return -1;
tor_log_reset_sigsafe_err_fds();
return 0;