We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c6a23d commit 6f9cef8Copy full SHA for 6f9cef8
2 files changed
Source/NSFileCoordinator.m
@@ -150,9 +150,8 @@ - (void)coordinateAccessWithIntents: (NSArray *)intents
150
byAccessor: (GSAccessorCallbackHandler)accessor
151
{
152
NSEnumerator *en = [intents objectEnumerator];
153
- id obj = nil;
154
155
- while ((obj = [en nextObject]) != nil)
+ while ([en nextObject] != nil)
156
157
NSBlockOperation *op;
158
Tools/pl2link.m
@@ -212,7 +212,12 @@
212
NSString *execPath = nil;
213
int l = 0;
214
215
- fp = popen("which openapp","r");
+ 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
+ }
221
fgets(line,sizeof line,fp);
222
l = strlen(line);
223
line[l-1] = '\0';
0 commit comments