From 7108bdd255877c5fd94dc0f61a84199b90f2c538 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 25 May 2014 05:15:16 -0700 Subject: [PATCH] Initialize/check Installed/Recent section with nil. --- MobileCydia.mm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.50.0