]> git.cameronkatri.com Git - snaprestore.git/commitdiff
Fix an if statement
authorCameron Katri <me@cameronkatri.com>
Thu, 3 Dec 2020 14:30:46 +0000 (09:30 -0500)
committerCameron Katri <me@cameronkatri.com>
Thu, 3 Dec 2020 14:30:46 +0000 (09:30 -0500)
snaprestore.m

index 96e7b4d760082320327cffb96fc3a17af373b7a1..51b9c85d975faa7928ae7013eca8475ad7460cb2 100644 (file)
@@ -92,7 +92,7 @@ int main(int argc, char *argv[]) {
        mount(vol, snap, mnt);
        printf("Mounted %s at %s\n", snap, mnt);
        NSMutableSet *appSet = findApps(vol, mnt);
-       if (appSet) {
+       if ([appSet count]) {
                printf("Refreshing icon cache...\n");
                NSMutableArray *argArray = [[NSMutableArray alloc] init];
                for (NSString *app in appSet) {