Permalink
Browse files

Fix a copy-and-paste error when setting the unexpected exception handler

(actually set the terminate handler by mistake).
  • Loading branch information...
1 parent c4b68a5 commit dab8a0012017b46aeab061c8991632612b395aae David Chisnall committed Feb 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/exception.cc
View
2 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.

0 comments on commit dab8a00

Please sign in to comment.