From: Jay Freeman (saurik) Date: Sun, 25 May 2014 12:15:16 +0000 (-0700) Subject: Initialize/check Installed/Recent section with nil. X-Git-Tag: v1.1.10~33 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/7108bdd255877c5fd94dc0f61a84199b90f2c538 Initialize/check Installed/Recent section with nil. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index a4d462ce..8740c5d4 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7987,9 +7987,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi CFDateFormatterRef formatter(CFDateFormatterCreate(NULL, Locale_, kCFDateFormatterLongStyle, kCFDateFormatterNoStyle)); NSMutableArray *sections([NSMutableArray arrayWithCapacity:16]); - - Section *section; - + Section *section(nil); time_t last(0); for (size_t offset(0), count([packages count]); offset != count; ++offset) { @@ -7998,7 +7996,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi time_t updated([package updated]); updated -= updated % (60 * 60 * 24); - if (updated != last) { + if (section == nil || updated != last) { last = updated; NSString *name;