aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorylecollen <ylecollen@amdocs.com>2017-01-04 14:49:51 +0100
committerylecollen <ylecollen@amdocs.com>2017-01-04 14:49:51 +0100
commit7f6a63068bd29309e4e75d8af8fce24b6636dffe (patch)
tree36b91514ad782998c79b07b0a6a52332a4b7ad31
parent4ca8086a394eb403494c3411e8f61c5964ef5cda (diff)
Fix a C compilation warning.
-rw-r--r--java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_jni_helper.cpp2
1 files changed, 1 insertions, 1 deletions
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");