summaryrefslogtreecommitdiffstats
path: root/macosx/HBCore.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBCore.m')
-rw-r--r--macosx/HBCore.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/HBCore.m b/macosx/HBCore.m
index bc37a128e..13590aa8a 100644
--- a/macosx/HBCore.m
+++ b/macosx/HBCore.m
@@ -131,10 +131,10 @@ static void hb_error_handler(const char *errmsg)
#pragma mark - Scan
-- (BOOL)canScan:(NSURL *)url error:(NSError **)error
+- (BOOL)canScan:(NSURL *)url error:(NSError * __autoreleasing *)error
{
if (![[NSFileManager defaultManager] fileExistsAtPath:url.path]) {
- if (*error) {
+ if (error) {
*error = [NSError errorWithDomain:@"HBErrorDomain"
code:100
userInfo:@{ NSLocalizedDescriptionKey: @"Unable to find the file at the specified URL" }];