From 8ad4000ce21ce998327a30aa3334c0f14e6a05f4 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Sun, 20 Jan 2019 22:17:41 +0100 Subject: [PATCH] Android: some typos --- src/core/android/SDL_android.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/android/SDL_android.c b/src/core/android/SDL_android.c index b178935020ef3..a88f2f2cfa254 100644 --- a/src/core/android/SDL_android.c +++ b/src/core/android/SDL_android.c @@ -331,13 +331,13 @@ JNIEnv* Android_JNI_GetEnv(void) /* Get JNIEnv from the Thread local storage */ JNIEnv *env = pthread_getspecific(mThreadKey); if (env == NULL) { - /* If it fails, try to attach ! (e.g the thread isn't * created with SDL_CreateThread() */ + /* If it fails, try to attach ! (e.g the thread isn't created with SDL_CreateThread() */ int status; /* There should be a JVM */ if (mJavaVM == NULL) { __android_log_print(ANDROID_LOG_ERROR, "SDL", "Failed, there is no JavaVM"); - return 0; + return NULL; } /* Attach the current thread to the JVM and get a JNIEnv.