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

Commit

Permalink
Merge pull request #150 from radex/patch-2
Browse files Browse the repository at this point in the history
Fix crash when SAMKeychainQuery is subclassed
  • Loading branch information
soffes authored Aug 29, 2016
2 parents 80714c2 + 590d1a3 commit ea379d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SAMKeychainQuery.m
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ + (NSError *)errorWithCode:(OSStatus) code {
static dispatch_once_t onceToken;
static NSBundle *resourcesBundle = nil;
dispatch_once(&onceToken, ^{
NSURL *url = [[NSBundle bundleForClass:[self class]] URLForResource:@"SAMKeychain" withExtension:@"bundle"];
NSURL *url = [[NSBundle bundleForClass:[SAMKeychainQuery class]] URLForResource:@"SAMKeychain" withExtension:@"bundle"];
resourcesBundle = [NSBundle bundleWithURL:url];
});

Expand Down

0 comments on commit ea379d8

Please sign in to comment.