Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.

Commit ea379d8

Browse files
authored
Merge pull request #150 from radex/patch-2
Fix crash when SAMKeychainQuery is subclassed
2 parents 80714c2 + 590d1a3 commit ea379d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SAMKeychainQuery.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ + (NSError *)errorWithCode:(OSStatus) code {
251251
static dispatch_once_t onceToken;
252252
static NSBundle *resourcesBundle = nil;
253253
dispatch_once(&onceToken, ^{
254-
NSURL *url = [[NSBundle bundleForClass:[self class]] URLForResource:@"SAMKeychain" withExtension:@"bundle"];
254+
NSURL *url = [[NSBundle bundleForClass:[SAMKeychainQuery class]] URLForResource:@"SAMKeychain" withExtension:@"bundle"];
255255
resourcesBundle = [NSBundle bundleWithURL:url];
256256
});
257257

0 commit comments

Comments
 (0)