aboutsummaryrefslogtreecommitdiffstats
path: root/src/native/addrbook/macosx
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2011-02-18 11:23:58 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2011-02-18 11:23:58 +0000
commitf704de5658ecdc34e479aa2a88a93bdc125719f2 (patch)
tree44af248811bf449081636cdd380aef8302dcea9a /src/native/addrbook/macosx
parent94ceb98839b8ebc8c77160fd537aa061867de60a (diff)
downloadjitsi-f704de5658ecdc34e479aa2a88a93bdc125719f2.zip
jitsi-f704de5658ecdc34e479aa2a88a93bdc125719f2.tar.gz
jitsi-f704de5658ecdc34e479aa2a88a93bdc125719f2.tar.bz2
Fixes (the fix for) an issue reported by Emil Ivov and found to cause modifications to the Mac OS X Address Book to not be picked up by SIP Communicator upon subsequent searches.
Diffstat (limited to 'src/native/addrbook/macosx')
-rw-r--r--src/native/addrbook/macosx/net_java_sip_communicator_plugin_addrbook_macosx_MacOSXAddrBookContactQuery.m10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/native/addrbook/macosx/net_java_sip_communicator_plugin_addrbook_macosx_MacOSXAddrBookContactQuery.m b/src/native/addrbook/macosx/net_java_sip_communicator_plugin_addrbook_macosx_MacOSXAddrBookContactQuery.m
index 780431a..1dcf235 100644
--- a/src/native/addrbook/macosx/net_java_sip_communicator_plugin_addrbook_macosx_MacOSXAddrBookContactQuery.m
+++ b/src/native/addrbook/macosx/net_java_sip_communicator_plugin_addrbook_macosx_MacOSXAddrBookContactQuery.m
@@ -190,33 +190,31 @@ MacOSXAddrBookContactQuery_idToJObject
jo = joArray;
if (joArray)
{
- NSUInteger j, j1;
+ NSUInteger j, j2;
for (j = 0; j < mvCount; j++)
{
+ j2 = j * 2;
MacOSXAddrBookContactQuery_idToJObject(
jniEnv,
[mv valueAtIndex:j],
- joArray, j,
+ joArray, j2,
objectClass);
if (JNI_TRUE == (*jniEnv)->ExceptionCheck(jniEnv))
{
jo = NULL;
break;
}
- /* Because the compiler says ++j may be undefined for j. */
- j1 = j + 1;
MacOSXAddrBookContactQuery_idToJObject(
jniEnv,
[mv labelAtIndex:j],
- joArray, j1,
+ joArray, j2 + 1,
objectClass);
if (JNI_TRUE == (*jniEnv)->ExceptionCheck(jniEnv))
{
jo = NULL;
break;
}
- j = j1;
}
}
}