summaryrefslogtreecommitdiff
path: root/Sources.mm
diff options
context:
space:
mode:
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",