Index: runtime/vm/os_thread_linux.cc |
diff --git a/runtime/vm/os_thread_linux.cc b/runtime/vm/os_thread_linux.cc |
index 4955cb46aa73576b6715d02aeedc7d310f9c3857..9fb0b239e50ab3fec1e47165cef46a1dbb8b5d51 100644 |
--- a/runtime/vm/os_thread_linux.cc |
+++ b/runtime/vm/os_thread_linux.cc |
@@ -169,7 +169,8 @@ ThreadJoinId OSThread::GetCurrentThreadJoinId() { |
void OSThread::Join(ThreadJoinId id) { |
- ASSERT(pthread_join(id, NULL) == 0); |
+ int result = pthread_join(id, NULL); |
+ ASSERT(result == 0); |
} |