Commit a9423a96 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Keychain: do not silently call objectAtIndexedSubscript

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent c8fa954d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment