diff options
author | Cameron Katri <me@cameronkatri.com> | 2020-12-03 09:30:46 -0500 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2020-12-03 09:30:46 -0500 |
commit | 40ec6bf3e2f247af573625511ce8e26a94d63fc8 (patch) | |
tree | 52f36bdf56523bd88bdab2df62393033d114b10c | |
parent | 15849b42aa5641434b980fdc46a8f4d34da5d1be (diff) | |
download | snaprestore-40ec6bf3e2f247af573625511ce8e26a94d63fc8.tar.gz snaprestore-40ec6bf3e2f247af573625511ce8e26a94d63fc8.tar.zst snaprestore-40ec6bf3e2f247af573625511ce8e26a94d63fc8.zip |
Fix an if statement
-rw-r--r-- | snaprestore.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/snaprestore.m b/snaprestore.m index 96e7b4d..51b9c85 100644 --- a/snaprestore.m +++ b/snaprestore.m @@ -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) { |