mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Bugfix: Avoid looping while parsing the children of a tree
Happens very intermittently, readLine keeps returning "\r".
This commit is contained in:
committed by
Dave Grijalva
parent
5ea536be97
commit
6e06e4b931
@@ -216,6 +216,8 @@
|
||||
|
||||
NSString* p = [handle readLine];
|
||||
while (p.length > 0) {
|
||||
if ([p isEqualToString:@"\r"])
|
||||
break;
|
||||
BOOL isLeaf = ([p characterAtIndex:p.length - 1] != '/');
|
||||
if (!isLeaf)
|
||||
p = [p substringToIndex:p.length -1];
|
||||
|
||||
Reference in New Issue
Block a user