diff options
-rw-r--r-- | luni/src/main/native/libcore_io_Posix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/luni/src/main/native/libcore_io_Posix.cpp b/luni/src/main/native/libcore_io_Posix.cpp index 2592fe7..51dd8a1 100644 --- a/luni/src/main/native/libcore_io_Posix.cpp +++ b/luni/src/main/native/libcore_io_Posix.cpp @@ -868,7 +868,7 @@ static jint Posix_gettid(JNIEnv* env __unused, jobject) { int rc = pthread_threadid_np(NULL, &owner); // Requires Mac OS 10.6 if (rc != 0) { throwErrnoException(env, "gettid"); - return NULL; + return 0; } return static_cast<jint>(owner); #else |