vlc | branch: master | Jean-Baptiste Kempf <j...@videolan.org> | Wed Dec 21 
20:23:05 2016 +0100| [a9423a96267f21229fd50e88d2f82a9d9cc40f4e] | committer: 
Jean-Baptiste Kempf

Keychain: do not silently call objectAtIndexedSubscript

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a9423a96267f21229fd50e88d2f82a9d9cc40f4e
---

 modules/keystore/keychain.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/keystore/keychain.m b/modules/keystore/keychain.m
index d0f7362..8d05ee3 100644
--- a/modules/keystore/keychain.m
+++ b/modules/keystore/keychain.m
@@ -375,7 +375,7 @@ static unsigned int Find(vlc_keystore *p_keystore,
             return 0;
         }
 
-        SecKeychainItemRef itemRef = (__bridge 
SecKeychainItemRef)(listOfResults[i]);
+        SecKeychainItemRef itemRef = (__bridge 
SecKeychainItemRef)([listOfResults objectAtIndex:i]);
 
         SecKeychainAttributeInfo attrInfo;
 
@@ -453,7 +453,7 @@ static unsigned int Remove(vlc_keystore *p_keystore,
         matchCount = matches.count;
 
         for (NSUInteger x = 0; x < matchCount; x++) {
-            status = SecKeychainItemDelete((__bridge SecKeychainItemRef 
_Nonnull)(matches[x]));
+            status = SecKeychainItemDelete((__bridge SecKeychainItemRef 
_Nonnull)([matches objectAtIndex:x]));
             if (status != noErr) {
                 msg_Err(p_keystore, "Deletion error %i (%s)", status , 
[ErrorForStatus(status) UTF8String]);
                 failed = YES;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to