Skip to content
Snippets Groups Projects
Commit a8d89c15 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed a stupid mistake (still for racy backtrace() protection).

parent 4d55070f
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ castor::exception::Backtrace::Backtrace(): m_trace() {
void * array[200];
g_lock.lock();
size_t depth = ::backtrace(array, sizeof(array)/sizeof(void*));
g_lock.lock();
g_lock.unlock();
char ** strings = ::backtrace_symbols(array, depth);
if (!strings)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment