From 7f6a63068bd29309e4e75d8af8fce24b6636dffe Mon Sep 17 00:00:00 2001 From: ylecollen Date: Wed, 4 Jan 2017 14:49:51 +0100 Subject: [PATCH] Fix a C compilation warning. --- java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_jni_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_jni_helper.cpp b/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_jni_helper.cpp index 9205fc0..e8661c7 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_jni_helper.cpp +++ b/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_jni_helper.cpp @@ -123,7 +123,7 @@ jlong getInstanceId(JNIEnv* aJniEnv, jobject aJavaObject, const char *aCallingCl { LOGE("## getAccountInstanceId() failure - invalid instance of"); } - else if (loaderClass = aJniEnv->GetObjectClass(aJavaObject)) + else if ((loaderClass = aJniEnv->GetObjectClass(aJavaObject))) { jfieldID instanceIdField = aJniEnv->GetFieldID(loaderClass, "mNativeId", "J");