summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-05-25 05:15:16 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-05-25 05:16:02 -0700
commit7108bdd255877c5fd94dc0f61a84199b90f2c538 (patch)
treee0222ea39d99acb413a0e994d55f6ef986196e32 /MobileCydia.mm
parent00f89173ea3bb31d8f7011fe35d350fb81b3d58a (diff)
Initialize/check Installed/Recent section with nil.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm6
1 files changed, 2 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index a4d462c..8740c5d 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;