fixed analyzer warning (garbage values)

This commit is contained in:
michael starke
2016-08-17 14:22:45 +02:00
parent cfbe37922e
commit 876f95c97c

View File

@@ -112,7 +112,7 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
_bindingEstablished = YES; _bindingEstablished = YES;
} }
NSTreeNode *node = [_outlineView itemAtRow:0]; NSTreeNode *node = [_outlineView itemAtRow:0];
NSInteger topRow; NSInteger topRow = 0;
[self _expandItems:node topRow:&topRow]; [self _expandItems:node topRow:&topRow];
if(topRow > 0) { if(topRow > 0) {
NSRect rowRect = [self.outlineView rectOfRow:topRow]; NSRect rowRect = [self.outlineView rectOfRow:topRow];