Index: runtime/vm/os_thread_android.cc |
diff --git a/runtime/vm/os_thread_android.cc b/runtime/vm/os_thread_android.cc |
index 8cbb03ee13b44c94f25bff228b41d80fc02989c5..fa8789692cab04ba2e914f45819f196c83b6a25a 100644 |
--- a/runtime/vm/os_thread_android.cc |
+++ b/runtime/vm/os_thread_android.cc |
@@ -167,7 +167,8 @@ ThreadJoinId OSThread::GetCurrentThreadJoinId() { |
void OSThread::Join(ThreadJoinId id) { |
- ASSERT(pthread_join(id, NULL) == 0); |
+ int result = pthread_join(id, NULL); |
+ ASSERT(result == 0); |
} |