Skip to content

Commit

Permalink
Remove initialisation of 'current' variable as it is reset in the loo…
Browse files Browse the repository at this point in the history
…p #csa
  • Loading branch information
geoffgarside committed Jan 21, 2010
1 parent 2023df0 commit 1521853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/GITPackIndexVersionOne.m
Expand Up @@ -54,7 +54,7 @@ - (BOOL)parseFanoutTable: (NSError **)error {
NSUInteger i, last, current;
NSMutableArray *newFanoutTable = [NSMutableArray arrayWithCapacity:_fanOutCount];

last = current = 0;
last = 0;
for ( i = 0; i < _fanOutCount; i++ ) {
[data getBytes:&numberOfObjects range:NSMakeRange(_fanOutSize * i, _fanOutSize)];
current = CFSwapInt32BigToHost(numberOfObjects);
Expand Down
2 changes: 1 addition & 1 deletion Source/GITPackIndexVersionTwo.m
Expand Up @@ -57,7 +57,7 @@ - (BOOL)parseFanoutTable: (NSError **)error {
NSMutableArray *newFanoutTable = [NSMutableArray arrayWithCapacity:_fanOutCount];
NSRange fanoutRange = [self fanoutTableRange];

last = current = 0;
last = 0;
for ( i = 0; i < _fanOutCount; i++ ) {
NSRange range = NSMakeRange(i * _fanOutSize + fanoutRange.location, _fanOutSize);
[data getBytes:&numberOfObjects range:range];
Expand Down

0 comments on commit 1521853

Please sign in to comment.