Skip to content

Commit 6f9cef8

Browse files
committed
void static analyser warnings
1 parent 2c6a23d commit 6f9cef8

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Source/NSFileCoordinator.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,8 @@ - (void)coordinateAccessWithIntents: (NSArray *)intents
150150
byAccessor: (GSAccessorCallbackHandler)accessor
151151
{
152152
NSEnumerator *en = [intents objectEnumerator];
153-
id obj = nil;
154153

155-
while ((obj = [en nextObject]) != nil)
154+
while ([en nextObject] != nil)
156155
{
157156
NSBlockOperation *op;
158157

Tools/pl2link.m

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,12 @@
212212
NSString *execPath = nil;
213213
int l = 0;
214214

215-
fp = popen("which openapp","r");
215+
if (NULL == (fp = popen("which openapp","r")))
216+
{
217+
GSPrintf(stderr, @"Unable to find 'openapp' to open '%@'\n", entry);
218+
[pool release];
219+
exit(EXIT_FAILURE);
220+
}
216221
fgets(line,sizeof line,fp);
217222
l = strlen(line);
218223
line[l-1] = '\0';

0 commit comments

Comments
 (0)