]> git.saurik.com Git - uikittools.git/blobdiff - uicache.mm
gcc -Wall -Werror
[uikittools.git] / uicache.mm
index 839770319c2a92d9e1c5439d47ea07ec7d01c27f..41a8839bcc2f95bc0545bdc0b6bfe293243a05ce 100644 (file)
@@ -64,7 +64,7 @@ int main(int argc, const char *argv[]) {
                     NSString *plist = [path stringByAppendingPathComponent:@"Info.plist"];
 
                     if (NSMutableDictionary *info = [NSMutableDictionary dictionaryWithContentsOfFile:plist]) {
-                        if (NSString *bundle = [info objectForKey:@"CFBundleIdentifier"]) {
+                        if ([info objectForKey:@"CFBundleIdentifier"] != nil) {
                             [bundles addObject:path];
                             [info setObject:path forKey:@"Path"];
                             [info setObject:@"System" forKey:@"ApplicationType"];