From 90c55806c081b2610a08a48a6cc897e0121ab3b7 Mon Sep 17 00:00:00 2001 From: ylecollen Date: Thu, 5 Jan 2017 09:42:25 +0100 Subject: fix an invalid test --- .../OlmLibSdk/olm-sdk/src/main/jni/olm_outbound_group_session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') 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(sessionSize)); -- cgit v1.2.3