mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 08:52:20 +00:00
Fix potential return of garbage value
This commit is contained in:
@@ -43,6 +43,12 @@
|
||||
MPVersionCharacterType typeB;
|
||||
|
||||
NSUInteger minPartsCount = MIN(partsA.count, partsB.count);
|
||||
if(minPartsCount == 0) {
|
||||
if(partsA.count == 0) {
|
||||
return NSOrderedAscending;
|
||||
}
|
||||
return NSOrderedDescending;
|
||||
}
|
||||
for(NSUInteger index = 0; index < minPartsCount; index++) {
|
||||
|
||||
NSString *partA = partsA[index];
|
||||
|
||||
Reference in New Issue
Block a user