]> git.saurik.com Git - cydia.git/commitdiff
Simply avoid null sources.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 13 Mar 2011 22:49:23 +0000 (15:49 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 12:09:10 +0000 (05:09 -0700)
Sources.mm

index 11a86dc2e92ab68592f950da38d8afe39a94fa22..ee7e5ac20b03ad574ed629a181d2bf40e2389053 100644 (file)
@@ -84,6 +84,9 @@ void CydiaAddSource(NSDictionary *source) {
 }
 
 void CydiaAddSource(NSString *href, NSString *distribution, NSArray *sections) {
+    if (href == nil || distribution == nil)
+        return;
+
     CydiaAddSource([NSMutableDictionary dictionaryWithObjectsAndKeys:
         @"deb", @"Type",
         href, @"URI",