check for uninitialized context array on final dump in the case if the test failed
This commit is contained in:
@@ -242,7 +242,7 @@ void dump_context_array() {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
for (auto& v : *context_array) dump_context(&v.second);
|
||||
if (context_array) for (auto& v : *context_array) dump_context(&v.second);
|
||||
|
||||
if (pthread_mutex_unlock(&mutex) != 0) {
|
||||
perror("pthread_mutex_unlock");
|
||||
|
||||
Reference in New Issue
Block a user