summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-12-26 13:18:25 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2016-12-26 13:18:25 -0800
commitb23b24db6ecef37ed83ad7167a30a0534cd3fbbf (patch)
tree0e023ca89dc418854b6cbc2af65f56b10ec75e15 /MobileCydia.mm
parentc66799b9a7cc38772cdda9873bee8ca850173e88 (diff)
longSection shouldn't try localizing NULL section.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index eacb25d..53df43e 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -2769,7 +2769,10 @@ struct PackageNameOrdering :
}
- (NSString *) longSection {
- return LocalizeSection([self section]);
+ if (NSString *section = [self section])
+ return LocalizeSection(section);
+ else
+ return nil;
}
- (NSString *) shortSection {