summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exception.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exception.cc b/src/exception.cc
index 4ccf38e..7f0d3e8 100644
--- a/src/exception.cc
+++ b/src/exception.cc
@@ -1387,7 +1387,7 @@ namespace std
{
if (thread_local_handlers) { return pathscale::set_unexpected(f); }
- return ATOMIC_SWAP(&terminateHandler, f);
+ return ATOMIC_SWAP(&unexpectedHandler, f);
}
/**
* Sets the function that is called to terminate the program.