check for uninitialized context array on final dump in the case if the test failed

This commit is contained in:
Evgeny
2017-12-22 12:39:55 -06:00
szülő 77cec10648
commit ccdb4fce0e
+1 -1
Fájl megtekintése
@@ -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");