aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMLoginItems.m
diff options
context:
space:
mode:
authorGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-02-27 22:22:04 +0000
committerGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-02-27 22:22:04 +0000
commitb1df2944b71fad420fd04607e16a80d7591a3c1b (patch)
tree3fa28cacbe452530757e88444d8f0aa0ee3bb63c /AppKit/GTMLoginItems.m
parent3388ce723f73ae47db17a9c7c3c3f766d566d0f7 (diff)
a few fixes (and bug fix) found by clang
Diffstat (limited to 'AppKit/GTMLoginItems.m')
-rw-r--r--AppKit/GTMLoginItems.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/AppKit/GTMLoginItems.m b/AppKit/GTMLoginItems.m
index c3dedfe..f124ef5 100644
--- a/AppKit/GTMLoginItems.m
+++ b/AppKit/GTMLoginItems.m
@@ -74,7 +74,7 @@ NSString * const kGTMLoginItemsHiddenKey = @"Hide";
NSAppleEventDescriptor *scriptResult = [query executeAndReturnError:&errDict];
if (!scriptResult) {
// COV_NF_START - no real way to test this
- if (*errorInfo)
+ if (errorInfo)
*errorInfo = [NSError errorWithDomain:@"GTMLoginItems" code:-92 userInfo:errDict];
return NO;
// COV_NF_END
@@ -108,7 +108,7 @@ NSString * const kGTMLoginItemsHiddenKey = @"Hide";
NSAppleEventDescriptor *scriptResult = [query executeAndReturnError:&errDict];
if (!scriptResult) {
// COV_NF_START - no real way to test this
- if (*errorInfo)
+ if (errorInfo)
*errorInfo = [NSError errorWithDomain:@"GTMLoginItems" code:-2 userInfo:errDict];
return nil;
// COV_NF_END