diff options
author | ritsuka <[email protected]> | 2015-03-19 16:28:09 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-03-19 16:28:09 +0000 |
commit | 339b3359c468b59b8bc254269b8fc0cba7b5c9cb (patch) | |
tree | 536ab6e40a820afd621c1e93eb851066f693d0e5 /macosx/HBCore.m | |
parent | 343b5248f8a0e0ffc756ece9a81e1e5d83a43a33 (diff) |
MacGui: fix the error variable in canScan:error: , it was dereferenced one time too many.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7006 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBCore.m')
-rw-r--r-- | macosx/HBCore.m | 4 |
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" }]; |