summaryrefslogtreecommitdiff
path: root/Sources.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-13 15:49:23 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 05:09:10 -0700
commit94179461c92b5ef8ed7dab0c02ac626b1899b026 (patch)
tree633668e0d07901b5354c8e484cf5c96f2879dbba /Sources.mm
parent708cf61e40da2ed0f63f8b212a2c3c9f7bab3e4f (diff)
Simply avoid null sources.
Diffstat (limited to 'Sources.mm')
-rw-r--r--Sources.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Sources.mm b/Sources.mm
index 11a86dc..ee7e5ac 100644
--- a/Sources.mm
+++ b/Sources.mm
@@ -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",