diff options
author | ylecollen <ylecollen@amdocs.com> | 2017-01-05 09:42:25 +0100 |
---|---|---|
committer | ylecollen <ylecollen@amdocs.com> | 2017-01-05 09:42:25 +0100 |
commit | 90c55806c081b2610a08a48a6cc897e0121ab3b7 (patch) | |
tree | 139a87576a979c507186344afb560c507776c8fd /java/android/OlmLibSdk | |
parent | 9df5dd9c4257982d22955d6b9ee55fc1e9dcb25f (diff) |
fix an invalid test
Diffstat (limited to 'java/android/OlmLibSdk')
-rw-r--r-- | java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_outbound_group_session.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_outbound_group_session.cpp b/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_outbound_group_session.cpp index e8fd38b..bfe5a4e 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_outbound_group_session.cpp +++ b/java/android/OlmLibSdk/olm-sdk/src/main/jni/olm_outbound_group_session.cpp @@ -69,7 +69,7 @@ JNIEXPORT jlong OLM_OUTBOUND_GROUP_SESSION_FUNC_DEF(createNewSessionJni)(JNIEnv { LOGE(" ## createNewSessionJni(): failure - outbound group session size = 0"); } - else if (!(sessionPtr = (OlmOutboundGroupSession*)malloc(sessionSize))) + else if ((sessionPtr = (OlmOutboundGroupSession*)malloc(sessionSize))) { sessionPtr = olm_outbound_group_session(sessionPtr); LOGD(" ## createNewSessionJni(): success - outbound group session size=%lu",static_cast<long unsigned int>(sessionSize)); |