mirror of
https://github.com/MacPass/MacPass.git
synced 2026-01-30 22:48:26 +00:00
Fix potential return of garbage value
This commit is contained in:
@@ -43,6 +43,12 @@
|
|||||||
MPVersionCharacterType typeB;
|
MPVersionCharacterType typeB;
|
||||||
|
|
||||||
NSUInteger minPartsCount = MIN(partsA.count, partsB.count);
|
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++) {
|
for(NSUInteger index = 0; index < minPartsCount; index++) {
|
||||||
|
|
||||||
NSString *partA = partsA[index];
|
NSString *partA = partsA[index];
|
||||||
|
|||||||
Reference in New Issue
Block a user