]> git.saurik.com Git - cydia.git/commitdiff
Fix the ZodTTD/MacCiti Mac OS Roman Name: bug.
authorJay Freeman (saurik) <saurik@saurk.com>
Mon, 28 Dec 2009 20:01:47 +0000 (20:01 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:13:59 +0000 (07:13 +0000)
Cydia.mm

index a8ed4b73743f740731b435bb2efc1bf58a4235f0..d2d9d78501b3fb84bbe40b971cb74fee5d6b4ed0 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -1932,6 +1932,11 @@ CFComparisonResult PackageNameCompare(Package *lhs, Package *rhs, void *arg) {
         CYString &rhi(PackageName(rhs, @selector(cyname)));
         CFStringRef lhn(lhi), rhn(rhi);
 
+        if (lhn == NULL)
+            return rhn == NULL ? NSOrderedSame : NSOrderedAscending;
+        else if (rhn == NULL)
+            return NSOrderedDescending;
+
         _profile(PackageNameCompare$NumbersLast)
             if (!lhi.empty() && !rhi.empty()) {
                 UniChar lhc(CFStringGetCharacterAtIndex(lhn, 0));