diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-13 15:49:23 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-14 05:09:10 -0700 |
commit | 94179461c92b5ef8ed7dab0c02ac626b1899b026 (patch) | |
tree | 633668e0d07901b5354c8e484cf5c96f2879dbba | |
parent | 708cf61e40da2ed0f63f8b212a2c3c9f7bab3e4f (diff) |
Simply avoid null sources.
-rw-r--r-- | Sources.mm | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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", |