Skip to content
Browse files

[FIX] Variable shadowing bug which would cause currentXcodePath to al…

  • Loading branch information...
1 parent 5c0c379 commit daa2a7501d1b386fc30f22c3304ee87162a55871 @rentzsch committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 mogenerator.m
View
2 mogenerator.m
@@ -380,7 +380,7 @@ - (NSString*)currentXcodePath {
NSData *data = [file readDataToEndOfFile];
- NSMutableString *result = [[[NSMutableString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease];
+ result = [[[NSMutableString alloc] initWithData:data encoding:NSUTF8StringEncoding] autorelease];
[result deleteCharactersInRange:NSMakeRange([result length]-1, 1)]; // trim newline
} @catch(NSException *ex) {
ddprintf(@"WARNING couldn't launch /usr/bin/xcode-select\n");

0 comments on commit daa2a75

Please sign in to comment.
Something went wrong with that request. Please try again.