From 4d454fdfd5a69080a655753481f8d0f49a339196 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 24 Dec 2015 16:11:28 +0100 Subject: [PATCH] Fix importFriends JNI method --- coreapi/linphonecore_jni.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/linphonecore_jni.cc b/coreapi/linphonecore_jni.cc index 4b2d3ec26..aa65ee784 100644 --- a/coreapi/linphonecore_jni.cc +++ b/coreapi/linphonecore_jni.cc @@ -1947,8 +1947,9 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_addFriend(JNIEnv* env extern "C" jint Java_org_linphone_core_LinphoneCoreImpl_importFriendsFromVCardFile(JNIEnv* env, jobject thiz, jlong lc, jstring jpath) { const char* path = env->GetStringUTFChars(jpath, NULL); - return linphone_core_import_friends_from_vcard4_file((LinphoneCore*)lc, path); + int count = linphone_core_import_friends_from_vcard4_file((LinphoneCore*)lc, path); env->ReleaseStringUTFChars(jpath, path); + return count; } extern "C" void Java_org_linphone_core_LinphoneCoreImpl_exportFriendsToVCardFile(JNIEnv* env, jobject thiz, jlong lc, jstring jpath) {